【发布时间】:2015-05-08 23:31:59
【问题描述】:
我需要为 JSDoc 中的教程添加静态资源。 我的项目结构是:
PROJECT ROOT
|
|
---> Project directory A
---> Project directory B
---> ...
|
---> Tutorials
|
|
|
-------->IMG
目录 tutorials/img 包含我想要包含的静态资源。 我的 conf 文件是:
{
"tags": {
"allowUnknownTags": true,
"dictionaries": [
"jsdoc",
"closure"
]
},
"source": {
"include": [
"modules/abstractModel.js",
"modules/abstractMediator.js",
"modules/abstractTemplate.js",
"modules/abstractView.js",
"modules/modelEvent/modelEvent.js"
],
//"exclude": ["http/httpSession.js", "http/wyPlayWrapper.js", "util/service.js"],
"includePattern": ".+\\.js(doc)?$",
"excludePattern": "(^|\\/|\\\\)_"
},
"plugins": [],
"templates": {
"default": {
"staticFiles": {
"include": ["./trunk/tutorials/img/"]
}
}
}
}
这是我用来生成文档的命令行(从 shell 执行到 PROJECT ROOT 目录):
jsdoc -c conf/jsdoc.conf -u 教程/ -d ./docs 。教程/README.md --详细
但是任何静态文件都被导入到 docs 文件夹中,我不能在教程中使用任何图像。任何建议表示赞赏。
【问题讨论】:
标签: javascript jsdoc