Apidocjs document creation issue, warning : plugin

2019-09-03 07:38发布

I tried to create API documentation using apidocjs and i got issues while compiling project for creating apidoc using apidoc.json on project folder.

Code here :

~$ apidoc -i ./ -o apidoc/

And result

warning: parser plugin 'param' not found.
error:   Error: Can not read: apidoc.json, please check the format (e.g. missing comma).

Please anyone help me to fix this issue

Tags related to apidocjs.com

5条回答
Emotional °昔
2楼-- · 2019-09-03 07:54
~$  apidoc -i ./ -e apidoc/ -o apidoc/

when api document generates, it generates main.js file with @param. and as that @param will also be checked next time of generation, you can just skip that output directory and all are good to go.

查看更多
手持菜刀,她持情操
3楼-- · 2019-09-03 08:03

I had the same proble. I'm using custom template and template folder was in the same location as my *.js files which are parsed including main.js template file. -e option did not worked for me so I moved template folder to other location and everything works fine.

查看更多
4楼-- · 2019-09-03 08:07

Removing the apidoc destination folder as @Prasanth suggests will destroy your history if you are using the @apiVersion feature. The only way you could rebuild it is to go through and checkout each version, then run the apidoc. So, if you want to use versioning. This is not your answer.

You may have syntax issues or some other configuration issue. In my case, since updating I had some functions documented in javadoc style with @param... this used to be ignored but now throws the warning.

查看更多
Viruses.
5楼-- · 2019-09-03 08:12

I had the same issue in rebar using erlang and what I did was in the project root folder:

rm -rf doc/

then I run again apidoc

info: Done

查看更多
Luminary・发光体
6楼-- · 2019-09-03 08:14

Issue is fixed for me as well, This error comes from the generated docs/main.js. Usually we should parse only necessary files, to generate this apiDoc.

I used -f .php in my command, like apidoc -f .php -i ./ -o ./. This is working like a miracle.

查看更多
登录 后发表回答