This repository has been archived by the owner on Mar 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Generate as markdown #57
Labels
Comments
I've played around trying to get this working with other Gulp plugins and I've gotten somewhat there. It's not perfect. It could be tweaked and improved but really it would be nice if biscotto supported it. Example file# Public: Parser
module.exports = class Parser
### Public ###
# Get number of unique things
# stuff - {String}
# Returns a {Number}
getNumberOfThings: (stuff) =>
return 0 My gulp taskDepends on: gulp.task 'docs', =>
$.biscotto()
.pipe($.filter (file) =>
return path.basename(file.path) is 'Parser.html'
)
.pipe($.hammerdown
type: 'gfm'
)
.pipe(es.map (file, cb) =>
lines = file.contents.toString().split('\n')
lines = lines.splice(65)
file.contents = new Buffer lines.join('\n')
cb null, file
)
.pipe(gulp.dest('./docs')); The output (
|
That's neat. Definitely not against this. The whole point of Biscotto's intermediate format--JSON--is to allow different generators to create different output. Obviously right now there's just one Generator, HTML. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It would be cool if markdown docs were supported. So for example if I'm working on a module with just a
index.coffee
with one class in it, then I could generate the doc for that class and link to it from my readme. Or even better, I could actually append it to my readme with gulp-biscotto (& other Gulp plugins).The text was updated successfully, but these errors were encountered: