Document Compilation Environment
This environment is to make easy to convert text documents from a markup format into others.
This template environment requires following programs to be installed and to be installed in PATH.
- gulp
- pandoc
$ npm installBy default, this environment assumes source files in src directory is written in reStructuredText format and makes output files in dest/html5 directory with HTML5 format.
If you are to change it, overwrite gulpfile.js.
var config = {
src: {
dir: 'src',
type: 'rst'
},
dest: {
dir: 'dest',
formats: [{
type: 'html5',
ext: '.html'
}]
}
};If you are to convert once, execute build task.
$ gulp buildIf you are to watch modifications and then convert, execute watch task.
$ gulp watchMIT License