在过去的4天里,我一直在试图让yuidoc解析我的javascript框架,它真的开始让我发疯了。
这是我的json配置文件
{ linkNatives: 'true',
attributesEmit: 'true',
paths: [ '..\\\\layers' ],
outdir: '../docs/',
port: 3000,
nocode: true,
extension: '.js',
project:
{ name: '{NAME}',
description: '{DESCRIPTION}',
version: '1.0.0',
url: 'http://docs.mysite.com/',
logo: 'http://docs.mysite.com/img/logo.png',
themedir: 'yuidoc-bootstrap-theme' } }它正在解析json配置,没有错误。这是输出:
$ yuidoc ../layers
info: (yuidoc): Starting YUIDoc@0.3.46 using YUI@3.9.1 with NodeJS@0.10.24
info: (yuidoc): Scanning for yuidoc.json file.
info: (yuidoc): Loading yuidoc.json data from: C:\devtools\GitHub\Framework\tools\yuidoc.json
info: (yuidoc): Starting YUIDoc with the following options:
info: (yuidoc):
{ linkNatives: 'true',
attributesEmit: 'true',
paths: [ '..\\\\layers' ],
outdir: '../docs',
port: 3000,
nocode: false,
project:
{ name: '{NAME}',
description: '{DESCRIPTION}',
version: '1.0.0',
url: 'http://docs.mysite.com/',
logo: 'http://docs.mysite.com/img/logo.png',
themedir: 'yuidoc-bootstrap-theme' } }
info: (yuidoc): YUIDoc Starting from: ..\\layers
Nlaak@Nlaak-PC /cygdrive/c/devtools/GitHub/Framework/tools
$我可以让它工作,使用命令行和默认设置输出和主题,但它没有我的项目构建和版本信息。Bootstrap的主题是在Github和工作。我在windows 7 64位上使用Cygwin 64位。
我有。-选中行尾.复制和粘贴具有最少编辑尝试的命令行的yuidocs示例-验证所有路径和目录存在
帮助!为什么没有错误也没有输出。
发布于 2014-01-21 17:48:14
我认为,在应用自定义配置时,YUIDoc中存在一个bug。
尝试在配置JSON中添加带有“outdir”条目的“output”属性。
例如,类似:
{
linkNatives: 'true',
attributesEmit: 'true',
paths: ['..\\\\layers'],
port: 3000,
nocode: true,
extension: '.js',
project: {
name: '{NAME}',
description: '{DESCRIPTION}',
version: '1.0.0',
url: 'http://docs.mysite.com/',
logo: 'http://docs.mysite.com/img/logo.png',
themedir: 'yuidoc-bootstrap-theme',
options: {
outdir: '..\out'
}
}
}发布于 2014-05-12 12:12:48
创建类似yuidoc.json的
{
"name": "yout title",
"version": "1.0.0",
"options": {
"outdir": "./docs"
}
}在你的终点站运行
c://user/test> yuidoc . -c yuidoc.json --server <js filder path ex: ./example> https://stackoverflow.com/questions/20975379
复制相似问题