Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Markdox Compiling in Gulp #59

Merged
merged 2 commits into from
Aug 13, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions gulpfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ concat = require 'gulp-concat'
minifyCSS = require 'gulp-minify-css'
karma = require 'gulp-karma'
clean = require 'gulp-clean'
markdox = require 'gulp-markdox'
fs = require 'fs'
http = require 'http'
argv = require('minimist') process.argv
Expand Down Expand Up @@ -312,6 +313,17 @@ gulp.task 'clean-play', ->
.pipe clean force : yes


# Use markdox to output markdown files for the API Documentation.
gulp.task 'markdox', ->
gulp.src [
'src/**/core/**/*.coffee'
'src/**/components/**/*.coffee'
]
.pipe markdox()
.pipe rename extname: '.md'
.pipe gulp.dest 'docs/api'


# Aggregate Tasks

gulp.task 'compile', ['clean', 'styles', 'libs', 'coffee']
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"jquery-mousewheel": "^3.1.9",
"findit": "^1.2.0",
"express": "^4.1.2",
"bluebird": "^1.2.4"
"bluebird": "^1.2.4",
"gulp-markdox": "^0.1.0"
}
}