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

grunt-dox-ivantage

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-dox-ivantage

Creates documentation markdown for your source code

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

grunt-dox

Creates documentation for your source code using Dox

Getting Started

This plugin requires Grunt ~0.4.2

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, you may install this plugin with this command:

npm install grunt-dox --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-dox');

The "dox" task

Overview

In your project's Gruntfile, add a section named dox to the data object passed into grunt.initConfig().

grunt.initConfig({
  dox: {
    your_target: {
      // Target-specific file lists and/or options go here.
      options: {
        // Task-specific options go here.
      },
      files: [
        // File lists go here
      ]
    }
  },
});

Options

options.lang

Type: String Default value: 'js'

The language style to use when parsing comments. Current possible values are 'js', 'php', and '4d'.

options.outputAs

Type: String Default value: 'md'

The output format for your documentation files. The standard is markdown files, but you can also output HTML or the raw comment JSON generated by Dox. Current possible values are 'md', 'json', and 'html.

Usage Examples

In this example, we generate docs for a set of PHP library files. Markdown files will be created in the docs folder with the same folder structure as the source files.

grunt.initConfig({
  dox: {
      myCodez: {
        options: {
          lang: 'php'
        },
        files: [
          {expand: true, cwd: 'library', src: '**/*', dest: 'docs/', ext: '.md'}
        ]
      }
    },
});
grunt.initConfig({
  dox: {
    methods4D: {
      options:{
        lang:'4d',
        outputAs:'html'
      },
      files:[
        {
          expand: true,
          cwd: '__structure/ce_source/',
          src: '*',
          dest:'__docs/',
          ext:'.html',
          filter:''
        }
      ]
    }
  }
});

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

(Nothing yet)

Keywords

FAQs

Package last updated on 01 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

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