Skip to content

Commit c96c167

Browse files
authored
Update .editorconfig and fix conf indents (#8442)
1 parent a73a8c4 commit c96c167

File tree

5 files changed

+362
-362
lines changed

5 files changed

+362
-362
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ end_of_line = lf
88
charset = utf-8
99
trim_trailing_whitespace = true
1010
insert_final_newline = true
11+
12+
[*.html]
13+
indent_style = tab
14+
indent_size = 4

docs/docusaurus.config.js

Lines changed: 94 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,97 @@
1-
/* eslint-disable import/no-commonjs */
21
// VERSION replaced by deploy script
32
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+
],
9897
};

docs/sidebars.js

Lines changed: 84 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -2,88 +2,88 @@ const pkg = require('../package.json');
22
const docsVersion = pkg.version.indexOf('-') > -1 ? 'next' : 'latest';
33

44
module.exports = {
5-
someSidebar: {
6-
Introduction: ['index'],
7-
'Getting Started': [
8-
'getting-started/index',
9-
'getting-started/installation',
10-
'getting-started/integration',
11-
'getting-started/usage',
12-
'getting-started/v3-migration'
13-
],
14-
General: [
15-
'general/data-structures',
16-
'general/accessibility',
17-
'general/responsive',
18-
'general/device-pixel-ratio',
19-
'general/locale',
20-
{Interactions: ['general/interactions/index', 'general/interactions/events', 'general/interactions/modes']},
21-
'general/options',
22-
'general/colors',
23-
'general/fonts',
24-
'general/performance'
25-
],
26-
Configuration: [
27-
'configuration/index',
28-
'configuration/animations',
29-
'configuration/layout',
30-
'configuration/legend',
31-
'configuration/title',
32-
'configuration/tooltip',
33-
'configuration/elements',
34-
'configuration/decimation'
35-
],
36-
'Chart Types': [
37-
'charts/line',
38-
'charts/bar',
39-
'charts/radar',
40-
'charts/doughnut',
41-
'charts/polar',
42-
'charts/bubble',
43-
'charts/scatter',
44-
'charts/area',
45-
'charts/mixed'
46-
],
47-
Axes: [
48-
'axes/index',
49-
{Cartesian: [
50-
'axes/cartesian/index',
51-
'axes/cartesian/category',
52-
'axes/cartesian/linear',
53-
'axes/cartesian/logarithmic',
54-
'axes/cartesian/time',
55-
'axes/cartesian/timeseries'
56-
]},
57-
{Radial: [
58-
'axes/radial/index',
59-
'axes/radial/linear'
60-
]},
61-
'axes/labelling',
62-
'axes/styling'
63-
],
64-
Developers: [
65-
'developers/index',
66-
'developers/api',
67-
{
68-
type: 'link',
69-
label: 'TypeDoc',
70-
href: 'https://chartjs.org/docs/' + docsVersion + '/typedoc/'
71-
},
72-
'developers/updates',
73-
'developers/plugins',
74-
'developers/charts',
75-
'developers/axes',
76-
'developers/contributing',
77-
'developers/publishing'
78-
],
79-
'Additional Notes': [
80-
'notes/comparison',
81-
{
82-
type: 'link',
83-
label: 'Extensions',
84-
href: 'https://github.com/chartjs/awesome'
85-
},
86-
'notes/license'
87-
]
88-
},
5+
someSidebar: {
6+
Introduction: ['index'],
7+
'Getting Started': [
8+
'getting-started/index',
9+
'getting-started/installation',
10+
'getting-started/integration',
11+
'getting-started/usage',
12+
'getting-started/v3-migration'
13+
],
14+
General: [
15+
'general/data-structures',
16+
'general/accessibility',
17+
'general/responsive',
18+
'general/device-pixel-ratio',
19+
'general/locale',
20+
{Interactions: ['general/interactions/index', 'general/interactions/events', 'general/interactions/modes']},
21+
'general/options',
22+
'general/colors',
23+
'general/fonts',
24+
'general/performance'
25+
],
26+
Configuration: [
27+
'configuration/index',
28+
'configuration/animations',
29+
'configuration/layout',
30+
'configuration/legend',
31+
'configuration/title',
32+
'configuration/tooltip',
33+
'configuration/elements',
34+
'configuration/decimation'
35+
],
36+
'Chart Types': [
37+
'charts/line',
38+
'charts/bar',
39+
'charts/radar',
40+
'charts/doughnut',
41+
'charts/polar',
42+
'charts/bubble',
43+
'charts/scatter',
44+
'charts/area',
45+
'charts/mixed'
46+
],
47+
Axes: [
48+
'axes/index',
49+
{Cartesian: [
50+
'axes/cartesian/index',
51+
'axes/cartesian/category',
52+
'axes/cartesian/linear',
53+
'axes/cartesian/logarithmic',
54+
'axes/cartesian/time',
55+
'axes/cartesian/timeseries'
56+
]},
57+
{Radial: [
58+
'axes/radial/index',
59+
'axes/radial/linear'
60+
]},
61+
'axes/labelling',
62+
'axes/styling'
63+
],
64+
Developers: [
65+
'developers/index',
66+
'developers/api',
67+
{
68+
type: 'link',
69+
label: 'TypeDoc',
70+
href: 'https://chartjs.org/docs/' + docsVersion + '/typedoc/'
71+
},
72+
'developers/updates',
73+
'developers/plugins',
74+
'developers/charts',
75+
'developers/axes',
76+
'developers/contributing',
77+
'developers/publishing'
78+
],
79+
'Additional Notes': [
80+
'notes/comparison',
81+
{
82+
type: 'link',
83+
label: 'Extensions',
84+
href: 'https://github.com/chartjs/awesome'
85+
},
86+
'notes/license'
87+
]
88+
},
8989
};

0 commit comments

Comments
 (0)