Browse Source

Reorder sections

main
Dan Abramov 2 years ago
parent
commit
67721a6f05
  1. 16
      src/sidebarHome.json
  2. 28
      src/sidebarLearn.json
  3. 44
      src/sidebarReference.json

16
src/sidebarHome.json

@ -6,14 +6,14 @@
"hasSectionHeader": true, "hasSectionHeader": true,
"sectionHeader": "GET STARTED" "sectionHeader": "GET STARTED"
}, },
{
"title": "Installation",
"path": "/learn/installation"
},
{ {
"title": "Quick Start", "title": "Quick Start",
"path": "/learn" "path": "/learn"
}, },
{
"title": "Installation",
"path": "/learn/installation"
},
{ {
"hasSectionHeader": true, "hasSectionHeader": true,
"sectionHeader": "LEARN REACT" "sectionHeader": "LEARN REACT"
@ -38,14 +38,14 @@
"hasSectionHeader": true, "hasSectionHeader": true,
"sectionHeader": "REACT API" "sectionHeader": "REACT API"
}, },
{
"title": "Components",
"path": "/reference/react/components"
},
{ {
"title": "Hooks", "title": "Hooks",
"path": "/reference/react" "path": "/reference/react"
}, },
{
"title": "Components",
"path": "/reference/react/components"
},
{ {
"title": "APIs", "title": "APIs",
"path": "/reference/react/apis" "path": "/reference/react/apis"

28
src/sidebarLearn.json

@ -6,6 +6,20 @@
"hasSectionHeader": true, "hasSectionHeader": true,
"sectionHeader": "GET STARTED" "sectionHeader": "GET STARTED"
}, },
{
"title": "Quick Start",
"path": "/learn",
"routes": [
{
"title": "Tutorial: Tic-Tac-Toe",
"path": "/learn/tutorial-tic-tac-toe"
},
{
"title": "Thinking in React",
"path": "/learn/thinking-in-react"
}
]
},
{ {
"title": "Installation", "title": "Installation",
"path": "/learn/installation", "path": "/learn/installation",
@ -28,20 +42,6 @@
} }
] ]
}, },
{
"title": "Quick Start",
"path": "/learn",
"routes": [
{
"title": "Tutorial: Tic-Tac-Toe",
"path": "/learn/tutorial-tic-tac-toe"
},
{
"title": "Thinking in React",
"path": "/learn/thinking-in-react"
}
]
},
{ {
"hasSectionHeader": true, "hasSectionHeader": true,
"sectionHeader": "LEARN REACT" "sectionHeader": "LEARN REACT"

44
src/sidebarReference.json

@ -6,28 +6,6 @@
"hasSectionHeader": true, "hasSectionHeader": true,
"sectionHeader": "react@18.2.0" "sectionHeader": "react@18.2.0"
}, },
{
"title": "Components",
"path": "/reference/react/components",
"routes": [
{
"title": "<Fragment> (<>)",
"path": "/reference/react/Fragment"
},
{
"title": "<Profiler>",
"path": "/reference/react/Profiler"
},
{
"title": "<StrictMode>",
"path": "/reference/react/StrictMode"
},
{
"title": "<Suspense>",
"path": "/reference/react/Suspense"
}
]
},
{ {
"title": "Hooks", "title": "Hooks",
"path": "/reference/react", "path": "/reference/react",
@ -94,6 +72,28 @@
} }
] ]
}, },
{
"title": "Components",
"path": "/reference/react/components",
"routes": [
{
"title": "<Fragment> (<>)",
"path": "/reference/react/Fragment"
},
{
"title": "<Profiler>",
"path": "/reference/react/Profiler"
},
{
"title": "<StrictMode>",
"path": "/reference/react/StrictMode"
},
{
"title": "<Suspense>",
"path": "/reference/react/Suspense"
}
]
},
{ {
"title": "APIs", "title": "APIs",
"path": "/reference/react/apis", "path": "/reference/react/apis",

Loading…
Cancel
Save