Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Documentation javascript source code with comments in grunt task.

License

NotificationsYou must be signed in to change notification settings

luozhihua/grunt-doxmate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doxmate grunt plugin to automatically generate documentation for you project. Currently generates JSON output usingdox, and generates HTML output usingdoxmate

Getting Started

This plugin requires Grunt~0.4.0

If you haven't usedGrunt before, be sure to check out theGetting Started guide, as it explains how to create aGruntfile 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 doxmate -g
npm install grunt-doxmate --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of #"auto" data-snippet-clipboard-copy-content="grunt.loadNpmTasks('grunt-doxmate');">

grunt.loadNpmTasks('grunt-doxmate');

Documentation

Inside of your grunt file, add:

doxmate:{options:{title:"My Library's awesome documentation"},files:{src:['js/lib/'],dest:'docs'}},

This will run all of your files inlib through dox and doxmate and put the output indocs.

Since thegrunt-doxmate task is a multi task, you can create several tasks for doxmate:

doxmate:{libdocs :{files:{src:['js/lib/'],dest:'docs'}},sourcedocs :{files:{src:['js/src/'],dest:'docs'}}},

To ignore certain directories, or to override the default ignore list, simpy add ignore and an array of paths. Note that this is the same as passing the--ignore parameter as described on thedox-foundation docs:

--ignore <directories>  Comma seperated list of directories to ignore. Overrides default of test, public, static, views, templates

Usage:

doxmate:{options:{title:'Ignore Nothing for my awesome documentation'},files:{ignore:['test'],src:['js/src/'],dest:'docs'}}

Note: This will completely delete and recreate the docs folder

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][grunt].

Release History

  • 0.1.0: Initial release

License

Copyright (c) 2013 Colin LuoLicensed under the MIT license.

About

Documentation javascript source code with comments in grunt task.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp