【问题标题】:jsdoc with node generates empty index.html带有节点的jsdoc生成空的index.html
【发布时间】:2015-12-05 17:48:44
【问题描述】:

我使用以下命令从 javascript 文件生成 html。

$> jsdoc --debug jquery.js 
$> open out/index.html

命令的输出

DEBUG: JSDoc 3.3.2 (Sat, 13 Jun 2015 22:20:28 GMT)
DEBUG: Environment info: {"env":{"conf":{"tags":{"allowUnknownTags":true,"dictionaries":["jsdoc","closure"]},"templates":{"monospaceLinks":false,"cleverLinks":true},"source":{"includePattern":".+\\.js(doc)?$","excludePattern":"(^|\\/|\\\\)_"},"plugins":[]},"opts":{"_":["jquery.js"],"configure":"conf.json","debug":true,"destination":"./out/","encoding":"utf8"}}}
DEBUG: Parsing source files: ["/Users/darpandagha/jquery.js"]
Parsing /Users/darpandagha/jquery.js ...complete.
DEBUG: Finished parsing source files.
DEBUG: Indexing doclets...
DEBUG: Adding inherited symbols, mixins, and interface implementations...
DEBUG: Adding borrowed doclets...
DEBUG: Post-processing complete.
Generating output files...complete.
Finished running in 2.76 seconds.

【问题讨论】:

    标签: jsdoc jsdoc3


    【解决方案1】:

    在最新的 jsdoc 版本中,您可以通过在命令行上使用“-R README.md”并将您想要的内容放入此文件中来指定索引内容。 我在DocStrap documentation 找到了这个。

    【讨论】:

    • 虽然此链接可能会回答问题,但最好在此处包含答案的基本部分并提供链接以供参考。如果链接页面发生更改,仅链接答案可能会失效。 - From Review
    • 第一句描述了如何解决问题。为什么您将其视为“仅链接答案”?
    猜你喜欢
    • 2022-01-18
    • 2015-10-04
    • 2013-03-16
    • 2021-10-15
    • 2014-02-12
    • 2020-02-08
    • 1970-01-01
    • 2017-08-20
    • 1970-01-01
    相关资源
    最近更新 更多