2015-09-09 31 views
1

我使用以下命令从javascript文件生成html。带节点的jsdoc生成空的index.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. 

回答

2

的在最后jsdoc版本,你可以通过使用命令行“-R README.md”,并把指定索引的内容,您在此想要什么文件。 我在DocStrap documentation找到了。

+0

虽然此链接可能回答问题,但最好在此处包含答案的基本部分,并提供供参考的链接。如果链接页面更改,则仅链接答案可能会失效。 - [来自评论](/ review/low-quality-posts/10664633) –

+1

第一句描述如何解决问题。为什么你将它看作“仅链接答案”? – Steros