|
1 | | -/* eslint-disable import/no-commonjs */ |
2 | 1 | // VERSION replaced by deploy script |
3 | 2 | module.exports = { |
4 | | - title: 'Chart.js', |
5 | | - tagline: 'Open source HTML5 Charts for your website', |
6 | | - url: 'https://chartjs.org', |
7 | | - baseUrl: '/docs/VERSION/', |
8 | | - favicon: 'img/favicon.ico', |
9 | | - organizationName: 'chartjs', // Usually your GitHub org/user name. |
10 | | - projectName: 'chartjs.github.io', // Usually your repo name. |
11 | | - scripts: ['https://www.chartjs.org/dist/VERSION/chart.min.js'], |
12 | | - themes: ['@docusaurus/theme-live-codeblock'], |
13 | | - onBrokenLinks: 'warn', |
14 | | - themeConfig: { |
15 | | - algolia: { |
16 | | - apiKey: 'd7ee00a3cbaaf3c33e28ad1c274e7ba6', |
17 | | - indexName: 'chartjs', |
18 | | - algoliaOptions: { |
19 | | - facetFilters: ['version:VERSION'], |
20 | | - } |
21 | | - }, |
22 | | - googleAnalytics: { |
23 | | - trackingID: 'UA-28909194-3', |
24 | | - // Optional fields. |
25 | | - anonymizeIP: true, // Should IPs be anonymized? |
26 | | - }, |
27 | | - colorMode: { |
28 | | - disableSwitch: true, // Would need to implement for Charts embedded in docs |
29 | | - }, |
30 | | - navbar: { |
31 | | - title: 'Chart.js', |
32 | | - logo: { |
33 | | - alt: 'Chart.js Logo', |
34 | | - src: 'img/logo.svg', |
35 | | - }, |
36 | | - }, |
37 | | - footer: { |
38 | | - style: 'dark', |
39 | | - links: [ |
40 | | - { |
41 | | - title: 'Other Docs', |
42 | | - items: [ |
43 | | - { |
44 | | - label: 'Samples', |
45 | | - href: 'https://www.chartjs.org/samples/VERSION/', |
46 | | - }, |
47 | | - { |
48 | | - label: 'v2 Docs', |
49 | | - href: 'https://www.chartjs.org/docs/2.9.4/', |
50 | | - }, |
51 | | - ], |
52 | | - }, |
53 | | - { |
54 | | - title: 'Community', |
55 | | - items: [ |
56 | | - { |
57 | | - label: 'Slack', |
58 | | - href: 'https://chartjs-slack.herokuapp.com/', |
59 | | - }, |
60 | | - { |
61 | | - label: 'Stack Overflow', |
62 | | - href: 'https://stackoverflow.com/questions/tagged/chart.js', |
63 | | - }, |
64 | | - ], |
65 | | - }, |
66 | | - { |
67 | | - title: 'Developers', |
68 | | - items: [ |
69 | | - { |
70 | | - label: 'GitHub', |
71 | | - href: 'https://github.com/chartjs/Chart.js', |
72 | | - }, |
73 | | - { |
74 | | - label: 'Contributing', |
75 | | - to: 'developers/contributing', |
76 | | - }, |
77 | | - ], |
78 | | - }, |
79 | | - ], |
80 | | - copyright: `Copyright © ${new Date().getFullYear()} Chart.js contributors.`, |
81 | | - }, |
82 | | - }, |
83 | | - presets: [ |
84 | | - [ |
85 | | - '@docusaurus/preset-classic', |
86 | | - { |
87 | | - docs: { |
88 | | - sidebarPath: require.resolve('./sidebars.js'), |
89 | | - routeBasePath: '/', |
90 | | - editUrl: 'https://github.com/chartjs/Chart.js/edit/master/docs/', |
91 | | - }, |
92 | | - theme: { |
93 | | - customCss: require.resolve('./src/css/custom.css'), |
94 | | - }, |
95 | | - }, |
96 | | - ], |
97 | | - ], |
| 3 | + title: 'Chart.js', |
| 4 | + tagline: 'Open source HTML5 Charts for your website', |
| 5 | + url: 'https://chartjs.org', |
| 6 | + baseUrl: '/docs/VERSION/', |
| 7 | + favicon: 'img/favicon.ico', |
| 8 | + organizationName: 'chartjs', // Usually your GitHub org/user name. |
| 9 | + projectName: 'chartjs.github.io', // Usually your repo name. |
| 10 | + scripts: ['https://www.chartjs.org/dist/VERSION/chart.min.js'], |
| 11 | + themes: ['@docusaurus/theme-live-codeblock'], |
| 12 | + onBrokenLinks: 'warn', |
| 13 | + themeConfig: { |
| 14 | + algolia: { |
| 15 | + apiKey: 'd7ee00a3cbaaf3c33e28ad1c274e7ba6', |
| 16 | + indexName: 'chartjs', |
| 17 | + algoliaOptions: { |
| 18 | + facetFilters: ['version:VERSION'], |
| 19 | + } |
| 20 | + }, |
| 21 | + googleAnalytics: { |
| 22 | + trackingID: 'UA-28909194-3', |
| 23 | + // Optional fields. |
| 24 | + anonymizeIP: true, // Should IPs be anonymized? |
| 25 | + }, |
| 26 | + colorMode: { |
| 27 | + disableSwitch: true, // Would need to implement for Charts embedded in docs |
| 28 | + }, |
| 29 | + navbar: { |
| 30 | + title: 'Chart.js', |
| 31 | + logo: { |
| 32 | + alt: 'Chart.js Logo', |
| 33 | + src: 'img/logo.svg', |
| 34 | + }, |
| 35 | + }, |
| 36 | + footer: { |
| 37 | + style: 'dark', |
| 38 | + links: [ |
| 39 | + { |
| 40 | + title: 'Other Docs', |
| 41 | + items: [ |
| 42 | + { |
| 43 | + label: 'Samples', |
| 44 | + href: 'https://www.chartjs.org/samples/VERSION/', |
| 45 | + }, |
| 46 | + { |
| 47 | + label: 'v2 Docs', |
| 48 | + href: 'https://www.chartjs.org/docs/2.9.4/', |
| 49 | + }, |
| 50 | + ], |
| 51 | + }, |
| 52 | + { |
| 53 | + title: 'Community', |
| 54 | + items: [ |
| 55 | + { |
| 56 | + label: 'Slack', |
| 57 | + href: 'https://chartjs-slack.herokuapp.com/', |
| 58 | + }, |
| 59 | + { |
| 60 | + label: 'Stack Overflow', |
| 61 | + href: 'https://stackoverflow.com/questions/tagged/chart.js', |
| 62 | + }, |
| 63 | + ], |
| 64 | + }, |
| 65 | + { |
| 66 | + title: 'Developers', |
| 67 | + items: [ |
| 68 | + { |
| 69 | + label: 'GitHub', |
| 70 | + href: 'https://github.com/chartjs/Chart.js', |
| 71 | + }, |
| 72 | + { |
| 73 | + label: 'Contributing', |
| 74 | + to: 'developers/contributing', |
| 75 | + }, |
| 76 | + ], |
| 77 | + }, |
| 78 | + ], |
| 79 | + copyright: `Copyright © ${new Date().getFullYear()} Chart.js contributors.`, |
| 80 | + }, |
| 81 | + }, |
| 82 | + presets: [ |
| 83 | + [ |
| 84 | + '@docusaurus/preset-classic', |
| 85 | + { |
| 86 | + docs: { |
| 87 | + sidebarPath: require.resolve('./sidebars.js'), |
| 88 | + routeBasePath: '/', |
| 89 | + editUrl: 'https://github.com/chartjs/Chart.js/edit/master/docs/', |
| 90 | + }, |
| 91 | + theme: { |
| 92 | + customCss: require.resolve('./src/css/custom.css'), |
| 93 | + }, |
| 94 | + }, |
| 95 | + ], |
| 96 | + ], |
98 | 97 | }; |
0 commit comments