Created
February 5, 2015 00:06
-
-
Save windgazer/d44f486d832afb1cb338 to your computer and use it in GitHub Desktop.
Quick n Dirty Github wiki jsdoc using jsdoc-to-markdown
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* global require, module */ | |
/* jshint camelcase: false */ | |
module.exports = function(grunt) { | |
"use strict"; | |
require("matchdep").filterDev("grunt-*").forEach(grunt.loadNpmTasks); | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON("package.json"), | |
jsdoc2md: { | |
withOptions: { | |
options: { | |
template: "wiki.hbs", | |
partial: "partials/*.hbs" | |
}, | |
src: ["README.md","code/*.js"], | |
dest: "<%= pkg.wiki.target %>/Home.md" | |
} | |
} | |
}); | |
grunt.registerTask("wiki", ["jsdoc2md"]); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment