Skip to content

Commit

Permalink
docs: update leanup doc
Browse files Browse the repository at this point in the history
  • Loading branch information
deleonio committed Mar 9, 2021
1 parent d7cd1b6 commit 8df784d
Show file tree
Hide file tree
Showing 5 changed files with 272 additions and 330 deletions.
32 changes: 9 additions & 23 deletions docs/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,37 +50,23 @@ module.exports = {
},
],

// sidebar: {
// "/guide/": getGuideSidebar(),
// "/config/": getConfigSidebar(),
// "/": getGuideSidebar(),
// },
sidebar: {
'/guide/': getGuideSidebar(),
// "/config/": getConfigSidebar(),
// "/": getGuideSidebar(),
},
},
};

function getGuideSidebar() {
return [
{
text: 'Introduction',
children: [
{ text: 'What is VitePress?', link: '/' },
{ text: 'Getting Started', link: '/guide/getting-started' },
{ text: 'Configuration', link: '/guide/configuration' },
{ text: 'Asset Handling', link: '/guide/assets' },
{ text: 'Markdown Extensions', link: '/guide/markdown' },
{ text: 'Deploying', link: '/guide/deploy' },
],
},
{
text: 'Advanced',
text: 'Guide',
link: '/guide/',
children: [
{ text: 'Frontmatter', link: '/guide/frontmatter' },
{ text: 'Global Computed', link: '/guide/global-computed' },
{ text: 'Global Component', link: '/guide/global-component' },
{ text: 'Customization', link: '/guide/customization' },
{
text: 'Differences from Vuepress',
link: '/guide/differences-from-vuepress',
text: 'Migration',
link: '/guide/migration/',
},
],
},
Expand Down
Loading

0 comments on commit 8df784d

Please sign in to comment.