- 运行命令: npm run doc:dev
- 点击控制台提示链接访问网页文档
- 创建一个远程仓库 xxx-client_docs
- 修改docs/.vuepress/config.js: base: '/xxx-client_docs/'
- 打包文档: npm run doc:build
- 将项目推送到github
- git init
- git add .
- git commit -m "init"
- git remote add
- git push origin master
- 发布文档: npm run doc:deploy
- 访问在线文档: https://github用户名.github.io/xxx-client_docs/ (可能要等待一定的时间)