我现在已经在我的计算机中安装了新的模板。
https://github.com/jodacame/apidocjs-template-dark-Slate-Inspiration-
根据上述链接中的文档,我完成了以下操作:
git clone https://github.com/jodacame/apidocjs-template-dark-Slate-Inspiration-.git
cd yourproject
this last line I've changed a bit:
Original as per template documentation:
apidoc --template ../apidocjs-template-dark-Slate-Inspiration-/template/我的:
apidoc --template apidocjs-template-dark-Slate-Inspiration-/template/文件夹结构:
项目文件夹/apidocjs-模板-暗板-灵感-
apidoc.json
api_project.json
api_project.js
api_data.json
api_data.js
供应商
区域设置
字体
css
我的apidoc.json看起来是这样的:
{
"name": "XX API Introduction",
"version": "0.1.0",
"description": "wemfdkmesof.......",
"title": "Custom apiDoc browser title",
"url" : "http://xxx/api.php/v1",
"template": {
"withCompare": true,
"withGenerator": true
}
}在进行任何更改之后,我总是运行这个命令来生成文档:
apidoc -f .php -i ./ -o ./请指导我为什么模板不改变为新的,我如何做到这一点?
发布于 2019-01-24 14:07:07
每次更新文档时尝试添加-t path/to/template
例如:
apidoc -f .php -i ./ -o ./ -t ./apidocjs-template-dark-Slate-Inspiration-/template/https://stackoverflow.com/questions/52731933
复制相似问题