Skip to content

simonerom/vuepress-plugin-sidebar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vuepress-plugin-sidebar

Sidebar-menu generator plugin for VuePress.

Instration

$ npm install --save-dev vuepress-plugin-sidebar
# or
$ yarn add --dev vuepress-plugin-sidebar

How to use

module.exports = {
  plugins: [
    ['sidebar']
  ]
}

Options

Add static links after generated menu

module.exports = {
  plugins: [
    [
      'sidebar', {
        postItems: [
          ['https://www.tacck.net/', 'Tacck.NET']
        ]
      }
    ]
  ]
}

Grouping menu

module.exports = {
  plugins: [
    [
      'sidebar', {
        grouping: true,
        groupOptions: {
          collapsable: true,
          sidebarDepth: 2,
        },
      }
    ]
  ]
}

If you want to set group title, please set frontmatter groupTitle on each directories' README.md.

---
groupTitle: Group Title 01
---

Please see example.

License

MIT License

Packages

No packages published

Languages

  • JavaScript 100.0%