A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/chartjs/chartjs-plugin-deferred/commit/48602fb645bd06bb6230a1290859ab356f229045 below:

Add vuepress-plugin-versions to the docs · chartjs/chartjs-plugin-deferred@48602fb · GitHub

File tree Expand file treeCollapse file tree 3 files changed

+126

-1

lines changed

Filter options

Expand file treeCollapse file tree 3 files changed

+126

-1

lines changed Original file line number Diff line number Diff line change

@@ -1,3 +1,8 @@

1 +

// https://docs.netlify.com/configure-builds/environment-variables/#git-metadata

2 +

const BRANCH = process.env.BRANCH || (process.env.NODE_ENV === 'development' ? 'local' : '');

3 +

const IS_DEV = BRANCH ? !BRANCH.match(/^v\d\.\d\.\d/) : false;

4 +

const REPO_NAME = 'chartjs/chartjs-plugin-deferred';

5 +

const REPO_URL = `https://www.github.com/${REPO_NAME}`;

1 6

const pkg = require('../../package.json');

2 7 3 8

module.exports = {

@@ -18,9 +23,55 @@ module.exports = {

18 23

{base: '/', alternative: ['guide/']},

19 24

],

20 25

}],

26 +

['@simonbrunel/vuepress-plugin-versions', {

27 +

filters: {

28 +

compat: (major) => +major < 2 ? 1 : 2,

29 +

slug: (v) => v.replace(/\./g, '_'),

30 +

suffix: (v) => v ? ` (${v})` : '',

31 +

},

32 +

menu: {

33 +

text: IS_DEV ? `Development (${BRANCH})` : '{{version}}',

34 +

items: [

35 +

{

36 +

text: 'Documentation',

37 +

items: [

38 +

{

39 +

target: '_self',

40 +

text: 'Development (master)',

41 +

link: 'https://master--chartjs-plugin-deferred.netlify.app/',

42 +

},

43 +

{

44 +

type: 'versions',

45 +

text: '{{major}}.{{minor}}.x - Chart.js v{{major|compat}}',

46 +

link: 'https://v{{version|slug}}--chartjs-plugin-deferred.netlify.app/',

47 +

target: '_self',

48 +

exclude: /^0\./,

49 +

group: 'major',

50 +

},

51 +

],

52 +

},

53 +

{

54 +

text: 'Release notes',

55 +

items: [

56 +

{

57 +

type: 'versions',

58 +

text: 'v{{version}}{{tag|suffix}}',

59 +

link: `${REPO_URL}/releases/tag/v{{version}}`,

60 +

exclude: /^0\./,

61 +

group: 'major',

62 +

},

63 +

{

64 +

text: 'All releases',

65 +

link: `${REPO_URL}/releases`,

66 +

},

67 +

],

68 +

},

69 +

],

70 +

},

71 +

}],

21 72

],

22 73

themeConfig: {

23 -

repo: 'chartjs/chartjs-plugin-deferred',

74 +

repo: REPO_NAME,

24 75

logo: '/favicon.png',

25 76

lastUpdated: 'Last Updated',

26 77

editLinks: true,

Original file line number Diff line number Diff line change

@@ -19,6 +19,7 @@

19 19

"package": "npm run build && node scripts/create-packages.js"

20 20

},

21 21

"devDependencies": {

22 +

"@simonbrunel/vuepress-plugin-versions": "^0.2.0",

22 23

"@vuepress/plugin-google-analytics": "^1.9.5",

23 24

"archiver": "^5.3.0",

24 25

"chart.js": "^3.7.0",

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4