Springboot中文文档查看方法

Springboot中文文档查看方法

第一步

下载安装node.js以及npm

第二步

https://github.com/DocsHome/springboot

从github上下载该项目

第三步

安装 GitBook 命令行工具(请确保您已经安装了 Node.js 和 npm)
npm install gitbook-cli -g
进入项目根目录,执行以下命令安装 gitbook 依赖:
gitbook install
查看文档方式1:启动本地服务器在线浏览
gitbook serve
查看文档方式2:生成 HTML,生成的文件位于 _book 目录下
gitbook build

执行gitbook install报错

TypeError: cb.apply is not a function
at C:\Users\l'hua\AppData\Roaming\npm\node_modules\gitbook-cli\node_modules\npm\node_modules\graceful-fs\polyfills.js:287:18
at FSReqCallback.oncomplete (fs.js:193:5)

去对应文件polyfills.js下

注释以下代码后重新执行就不报错了(参考:https://www.jianshu.com/p/6221330b36ba)

fs.stat = statFix(fs.stat)
fs.fstat = statFix(fs.fstat)
fs.lstat = statFix(fs.lstat)

第四步

image-20210914171019085
)

posted @ 2021-09-14 17:15  CodeSweet  阅读(388)  评论(0编辑  收藏  举报