Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

broccoli-docco

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-docco

A [broccoli](https://github.com/broccolijs/broccoli) plugin that generates HTML code documentation using the popular [docco](http://jashkenas.github.io/docco/) library.

npmnpm
Version
0.0.4
Version published
Weekly downloads
23
Maintainers
1
Weekly downloads
 
Created
Source

#broccoli-docco Broccoli plugin for generating code documentation using Docco styled documentation blocks

NOTE: this is still a WIP, please not for use just yet :)

Installation

At the root of your development project type:

npm install broccoli-docco --save

Overview

This plugin leverages the popular docco documentation generator. This plugin can be used in your brocfile.js to identify tree's which should be documented. The primary method that will be exposed on this class is the document function:

function document(inputTree, options) {  }

Usage in the Brocfile would look something like:

var docco = require('broccoli-docco').DoccoBroc;
docco.document('src');

In the example above this would look for all supported document types in the src directory and create documentation in the docs directory (the default location).

Options

broccoli-docco's document method proxies the options hash to Docco. So you might have something like:

var docco = require('broccoli-docco').DoccoBroc;
var doccoOptions = {
	layout: 'parallel',
	output: 'docs',
	css: 'myCustomCSS.css'
};
docco.document('src', doccoOptions);

For more information about options parameteres refer to the Docco documentation.

Code Documentation

It would be odd to write code that documents code and then not document it ... so if you want to see the resultant documented code you can find it here:

broccoli-docco

Happy trails,

Ken Snyder

Keywords

broccoli

FAQs

Package last updated on 24 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts