我现在已将新模板安装到我的计算机中。
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-template-dark-Slate-Inspiration-
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 ./
请指导我为什么模板没有更改为新模板,我该怎么做?