https://zhuanlan.zhihu.com/p/30280276
JsDoc 不处理以“_”开头的JS文件解决办法:
This behavior is intentional. The default configuration file is set up to exclude files and folder names that begin with an underscore.
To change the default behavior:
- Copy
conf.json.EXAMPLE
to a new file,conf.json
. You can put it in the JSDoc directory or another directory. If you put it in another directory, you will need to use the-c
option to tell JSDoc where to find it:jsdoc -c path/to/conf.json
- Open
conf.json
in a text editor.- Find the
source.excludePattern
property, and change it to an empty string.We could definitely use better docs for this, so I made a note on a related issue in the documentation project: jsdoc3/jsdoc3.github.com#4
Hope that helps!