mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-19 06:36:51 +01:00
Improve Docusaurus URLs (#7315)
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -4,7 +4,7 @@ import {Redirect} from '@docusaurus/router';
|
||||
import useBaseUrl from '@docusaurus/useBaseUrl';
|
||||
|
||||
function Home() {
|
||||
return <Redirect to={useBaseUrl('/getting-started/README')} />;
|
||||
return <Redirect to={useBaseUrl('/index')} />;
|
||||
}
|
||||
|
||||
export default Home;
|
||||
|
||||
Reference in New Issue
Block a user