shanyuhai123 / vuepress-plugin-auto-sidebar

vuepress 自动生成侧边栏的插件。
https://shanyuhai123.github.io/vuepress-plugin-auto-sidebar/
MIT License
136 stars 29 forks source link

自行引入生成的 sidebar.js 文件,这个文件需要先运行命令生成 #59

Open scil opened 2 years ago

scil commented 2 years ago

yarn docs:dev就能生成,然后修改配置文件引入这个文件

shanyuhai123 commented 2 years ago

是的,我忘记在 README 中说明了

scil commented 2 years ago

另外配置支持自定义输出文件名字 但网站的文档上还没有写上

    plugins: [
         ["vuepress-plugin-auto-sidebar", {
            output: {filename: 'sidebar-auto'}
         }]
    ],