Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-build-docs

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-build-docs

Build documentations using YUIDOC

  • 0.4.0rc7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

grunt-build-docs

Generate the documentation of your projects using YUIDOC

Getting Started

If you haven't used grunt before, be sure to check out the Getting Started guide, as it explains how to create a gruntfile as well as install and use grunt plugins. Once you're familiar with that process, install this plugin with this command:

npm install grunt-build-docs --save-dev

docs task

Run this task with the grunt docs command.

This task is a [multi task][] so any targets, files and options should be specified according to the [multi task][] documentation. [multi task]: https://github.com/gruntjs/grunt/wiki/Configuring-tasks

This plugin is compatible with grunt 0.4.0rc7

Options

Settings mirror YUIDoc config.

Usage examples

First possibility: Create a documentation for each directory

docs: {
    compile: {
        name: "Example",
        description: 'Example Description',
        version: '1.0',
        url: 'http://www.example.com',
        options: {
          outdir: "docs" // path or name of the documentation directory
        },
        files: [{expand: true, flatten: true, cwd: "test/tests", src: "*", dest: "test/tests"}]
    }
}

If you want to create a index page that list and link all the available documentations (Usefull if several parts of your project own a documentation)

options: {
      indexdir: "test/tmp/indexdocs", // Path to the index page
      indextheme: "themes/simpleIndex" // Optional, if you want to use a custom theme
}

Second possibility: Create a commun documentation (Because the dest is the same for all directories)

docs: {
    compile: {
        name: "Example",
        description: 'Example Description',
        version: '1.0',
        url: 'http://www.example.com',
        options: {
          outdir: "../docs"
        },
        files: [{expand: true, flatten: true, cwd: "test/tests", src: "*", dest: "test/tmp"}]
    }
}

All these examples are tested in the plugin, you can see how it works by runnning "grunt test" inside the plugin.

Release History

  • 2013-02-25   v0.4.0rc7   Creation of the plugin, compatible with grunt rc7

Keywords

FAQs

Package last updated on 28 Feb 2013

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc