gpt4 book ai didi

javascript - yuidoc 解析但没有输出也没有错误

转载 作者:行者123 更新时间:2023-11-30 17:41:34 29 4
gpt4 key购买 nike

过去 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 示例- 以各种方式尝试命令行- 验证所有路径和目录都存在

帮助!为什么没有错误,没有输出。

最佳答案

我认为在应用自定义配置时 YUIDoc 中存在一个错误。

尝试在您的配置 JSON 中添加一个带有“outdir”条目的“输出”属性。

例如像这样的东西:

{
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'
}
}
}

关于javascript - yuidoc 解析但没有输出也没有错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20975379/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com