首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >yuidoc解析但没有输出也没有错误

yuidoc解析但没有输出也没有错误
EN

Stack Overflow用户
提问于 2014-01-07 15:23:32
回答 2查看 516关注 0票数 1

在过去的4天里,我一直在试图让yuidoc解析我的javascript框架,它真的开始让我发疯了。

这是我的json配置文件

代码语言:javascript
复制
{ 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配置,没有错误。这是输出:

代码语言:javascript
复制
$ 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示例-验证所有路径和目录存在

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

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-01-21 17:48:14

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

尝试在配置JSON中添加带有“outdir”条目的“output”属性。

例如,类似:

代码语言:javascript
复制
{
  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'
    }
  }
}
票数 1
EN

Stack Overflow用户

发布于 2014-05-12 12:12:48

创建类似yuidoc.json的

代码语言:javascript
复制
{
    "name": "yout title",    
    "version": "1.0.0",     
    "options": {                
        "outdir": "./docs"              
    }
}

在你的终点站运行

代码语言:javascript
复制
c://user/test> yuidoc . -c yuidoc.json --server  <js filder path ex: ./example> 
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20975379

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档