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 plugin that generates HTML code documentation using the popular docco library.

latest
npmnpm
Version
0.0.12
Version published
Maintainers
1
Created
Source

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

Installation

At the root of your development project type:

npm install broccoli-docco --save

Usage

This plugin leverages the popular Docco documentation generator. The signature of the plugin is:

var tree = docco(inputTree, options) { }
  • Where the inputTree is either a broccoli tree or a string representing a directory which should be converted to a tree
  • There are two options that can be specified currently -- output and layout -- see the example below for an illustration of their use

This plugin should be used in your brocfile.js in manner similar to this:

var docco = require('broccoli-docco');
var docs  = docco('src', {
	output: 'docs', // this is the default value
	layout: 'parallel' // this is default value, values could also be 'linear' or 'classic'
});
module.exports = docs;

In the example above all supported document types in the src directory would be processed into HTML documentation in the docs directory using the parallel design layout.

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 19 Aug 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