From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Fri, 8 May 2020 13:45:12 +0000 (-0700) Subject: Improve Docusaurus URLs (#7315) X-Git-Tag: v3.0.0-beta.2~160 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43a3654b344e893a2e850165a1411d308e67d6e6;p=thirdparty%2FChart.js.git Improve Docusaurus URLs (#7315) --- diff --git a/docs/docs/axes/cartesian/README.md b/docs/docs/axes/cartesian/index.md similarity index 100% rename from docs/docs/axes/cartesian/README.md rename to docs/docs/axes/cartesian/index.md diff --git a/docs/docs/axes/README.md b/docs/docs/axes/index.md similarity index 100% rename from docs/docs/axes/README.md rename to docs/docs/axes/index.md diff --git a/docs/docs/axes/radial/README.md b/docs/docs/axes/radial/index.md similarity index 100% rename from docs/docs/axes/radial/README.md rename to docs/docs/axes/radial/index.md diff --git a/docs/docs/configuration/README.md b/docs/docs/configuration/index.md similarity index 100% rename from docs/docs/configuration/README.md rename to docs/docs/configuration/index.md diff --git a/docs/docs/developers/README.md b/docs/docs/developers/index.md similarity index 100% rename from docs/docs/developers/README.md rename to docs/docs/developers/index.md diff --git a/docs/docs/general/interactions/README.md b/docs/docs/general/interactions/index.md similarity index 100% rename from docs/docs/general/interactions/README.md rename to docs/docs/general/interactions/index.md diff --git a/docs/docs/getting-started/README.md b/docs/docs/getting-started/index.md similarity index 100% rename from docs/docs/getting-started/README.md rename to docs/docs/getting-started/index.md diff --git a/docs/docs/README.md b/docs/docs/index.md similarity index 100% rename from docs/docs/README.md rename to docs/docs/index.md diff --git a/docs/sidebars.js b/docs/sidebars.js index 4b19a5033..7e6e4bae7 100644 --- a/docs/sidebars.js +++ b/docs/sidebars.js @@ -1,8 +1,8 @@ module.exports = { someSidebar: { - Introduction: ['README'], + Introduction: ['index'], 'Getting Started': [ - 'getting-started/README', + 'getting-started/index', 'getting-started/installation', 'getting-started/integration', 'getting-started/usage', @@ -13,14 +13,14 @@ module.exports = { 'general/accessibility', 'general/responsive', 'general/device-pixel-ratio', - {Interactions: ['general/interactions/README', 'general/interactions/events', 'general/interactions/modes']}, + {Interactions: ['general/interactions/index', 'general/interactions/events', 'general/interactions/modes']}, 'general/options', 'general/colors', 'general/fonts', 'general/performance' ], Configuration: [ - 'configuration/README', + 'configuration/index', 'configuration/animations', 'configuration/layout', 'configuration/legend', @@ -40,23 +40,23 @@ module.exports = { 'charts/mixed' ], Axes:[ - 'axes/README', + 'axes/index', { Cartesian: [ - 'axes/cartesian/README', + 'axes/cartesian/index', 'axes/cartesian/category', 'axes/cartesian/linear', 'axes/cartesian/logarithmic', 'axes/cartesian/time' ]}, { Radial: [ - 'axes/radial/README', + 'axes/radial/index', 'axes/radial/linear' ]}, 'axes/labelling', 'axes/styling' ], Developers: [ - 'developers/README', + 'developers/index', 'developers/api', { type: 'link', diff --git a/docs/src/pages/index.js b/docs/src/pages/index.js index 341f4744f..17298eb8f 100644 --- a/docs/src/pages/index.js +++ b/docs/src/pages/index.js @@ -4,7 +4,7 @@ import {Redirect} from '@docusaurus/router'; import useBaseUrl from '@docusaurus/useBaseUrl'; function Home() { - return ; + return ; } export default Home;