打赏

docsify安装和使用

docsify安装和使用

(1.)nodejs安装

npm i docsify-cli -g

docsify -v

(2.)创建目录,初始化

docsify init

(3.)运行程序

docsify serve

(4.)访问接口

htttp://localhost:3000

(5.)配置说明
定制侧边栏:在index.html文件中的window.$docsify添加loadSidebar: true,选项

<script> window.$docsify = { loadSidebar: true } </script> <script src="//unpkg.com/docsify"></script>
侧边栏	/_sidebar.md
导航栏	/_navbar.md
侧边栏	/_coverpage.md

相关链接

https://itx-man.github.io/2020/05/19/docsify/
https://www.jianshu.com/p/4883e95aa903
https://blog.hszofficial.site/recommend/2020/11/18/使用docsify写文档/

posted @ 2021-04-26 10:58  苍山落暮  阅读(729)  评论(0编辑  收藏  举报