vuepress-auto-sidebar-doumjun

1.0.1 • Public • Published

vuepress-auto-sidebar-doumjun

帮助你快速创建侧边栏:

如何使用:

  • 第一步: 下载
    npm install vuepress-auto-sidebar-doumjun
  • 第二步: 在config.js文件中引入
    //config.js
    const autosidebar = require('vuepress-auto-sidebar-doumjun')
  • 第三步: 在themeconfig中使用
    //config.js
    themeConfig: {
      ...
      sidebar: {
          '/guide/BLOG/': [
            {
              title: '博客',//此处写标题
              children: autosidebar('/guide/BLOG/')//向autosidebar传入文档所在文件夹的路径
            }
          ]
      }
      ...
    }
  • 第四步: 打包查看效果
    npm run docs:dev

效果预览:

https://doumjun.github.io/vuepress.blog/guide/BLOG/

github:https://github.com/DouMJun/vuepress-auto-sidebar-doumjun 欢迎提问和讨论.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.16latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.16
1.0.00

Package Sidebar

Install

npm i vuepress-auto-sidebar-doumjun

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

2.2 kB

Total Files

4

Last publish

Collaborators

  • doumjun