Skip to content

Instantly share code, notes, and snippets.

@insin
Created November 8, 2014 21:14
Show Gist options
  • Save insin/c7c4bb2fe77381c5f6bb to your computer and use it in GitHub Desktop.
Save insin/c7c4bb2fe77381c5f6bb to your computer and use it in GitHub Desktop.
Watch and rebuild Sphinx docs with Gulp
var gulp = require('gulp')
var shell = require('gulp-shell')
gulp.task('build-docs', shell.task('make html', {cwd: './docs'}))
gulp.task('docs', ['build-docs'], function() {
gulp.watch(['./docs/*.rst', './docs/*.py'], ['build-docs'])
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment