An open API service indexing awesome lists of open source software.

https://github.com/broccolijs/broccoli-yuidoc

YUIDoc generator for broccoli
https://github.com/broccolijs/broccoli-yuidoc

broccoli broccoli-yuidoc javascript yuidoc

Last synced: about 1 month ago
JSON representation

YUIDoc generator for broccoli

Awesome Lists containing this project

README

        

# broccoli-yuidoc [![Build Status](https://travis-ci.org/broccolijs/broccoli-yuidoc.svg?branch=master)](https://travis-ci.org/broccolijs/broccoli-yuidoc) [![Build status](https://ci.appveyor.com/api/projects/status/bc56n5ukqx9u0u50?svg=true)](https://ci.appveyor.com/project/embercli/broccoli-yuidoc)

This plugin provides support for generating YUIDoc via a broccoli
pipeline.

## Installation

```
npm install --save-dev broccoli-yuidoc
```

## Configuration

Additional options related to YUIDoc may be may be passed as an object
`yuidoc` to `yuidocCompiler`.
All of the available options can be found on [YUIDoc's official documentation
page](https://yui.github.io/yuidoc/args/index.html).

Note: If a `yuidoc.json` file exists in a parent directory, it will be
used as well.

## Usage

```js
var YUIDoc = require('broccoli-yuidoc');
var mergeTrees = require('broccoli-merge-trees');

// As with most other broccoli plugins, you can
// define the base directory of the files you
// would like documentation generated for as
// the first paramter, and specify source and
// destination directories.
// Custom YUIdoc options is passed as yuidoc.

var yuidocTree = new YUIDoc(['app'], {
destDir: 'docs',
yuidoc: {
// .. yuidoc option overrides
}
});

// To merge the YUIdoc build tree with, let's say,
// an ember application tree, use broccoli-mergetrees
var applicationTree = mergeTrees([app.toTree(), yuidocTree]);

module.exports = applicationTree;
```

It's recomended to use `broccoli-merge-trees` to finally produce
a signle tree for broccoli to work on.