Skip to content

Latest commit

 

History

History
71 lines (56 loc) · 1.03 KB

README.md

File metadata and controls

71 lines (56 loc) · 1.03 KB

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