【问题标题】:Apidocjs default template not changing to new template addedApdocjs 默认模板未更改为添加的新模板
【发布时间】:2019-03-14 21:01:06
【问题描述】:

我现在已将新模板安装到我的计算机中。

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 ./

请指导我为什么模板没有更改为新模板,我该怎么做?

【问题讨论】:

    标签: templates api-doc slate


    【解决方案1】:

    每次更新文档时尝试添加-t path/to/template

    例如。

    apidoc -f .php -i ./ -o ./ -t ./apidocjs-template-dark-Slate-Inspiration-/template/
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-15
      • 1970-01-01
      • 2013-05-11
      • 1970-01-01
      相关资源
      最近更新 更多