Is there any way to configure JSDoc such that the output is in JSON format instead of the usual HMTL format?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
There is an option "-X" ("explain") which creates a JSON file with parsed AST.
jsdoc -X ./mylib/ > jsdoc-ast.json
To understand this JSON you can use documented schema: https://github.com/jsdoc3/jsdoc/blob/master/lib/jsdoc/schema.js