1.0.3 • Published 10 years ago

grunt-docco-multi-dir v1.0.3

Weekly downloads
3
License
-
Repository
github
Last release
10 years ago

Grunt-docco-multi-dir allows an arbitrarily deep directory structure for your code, and the jump menu & templates properly reflect that structure. Additionally, it allows you to pass in a title for your project; no matter what doc page you are on, you know exactly where you are in the code hierarchy.

  • It is an improvement on grunt-docco-multi and employs some of the desired end results of grunt-docco-dir.
  • It uses a modified version of docco, called docco-multidir.

Improvements

  • A new docco option called projectName is passed into the template for rendering. This is coupled with other changes in docco-multidir, which put the full path to the file on the template.
  • Updated the code to use docco-multidir as a dependency, and not docco.
  • See docco-multidir for the list of other improvements.
  • Everything else is the same as "grunt-docco-multi" : "~0.0.2"

Installation

Install npm package, next to your project's Gruntfile:

npm install --save-dev grunt-docco-multi-dir

Add this line to your project's Gruntfile:

grunt.loadNpmTasks('grunt-docco-multi-dir');

Version

"grunt-docco-multi-dir" : "~1.0.3"

Configuration

docco is a multitask, so you can use it similary to lint, watch etc...

grunt.initConfig

...

docco:

  # ## use current sane defaults
  options:
    layout : "parallel"
    output : "docs/"
    projectName: "{insert your project name here}"

  # ## parse multiple files
  all:
    files:
      src: ['test/fixtures/*.coffee']

  # ## parse a single file
  single:
    files:
      src: ['test/fixtures/valid.litcoffee']

  # ## parse this file with linear output
  gruntfile:
    options:
      layout: "linear"
    files:
      src: 'Gruntfile.coffee'

  # ## nothing to parse
  empty: '404.coffee'

...

Options

Standard docco options are supported

config:
    layout:     'parallel'
    output:     'docs/'
    template:   null
    css:        null
    extension:  null
    projectName: '{insert your project name here}'
1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago