diff --git a/Gruntfile.js b/Gruntfile.js index e8c8a5fb..daeff798 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -4,11 +4,16 @@ module.exports = function(grunt) { require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); grunt.initConfig({ + open : { + dev: { + path: 'http://localhost:1919' + } + }, connect: { server: { options: { - port: 9000, + port: 1919, base: 'demo_docs/build/html' } } @@ -86,8 +91,9 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-compass'); grunt.loadNpmTasks('grunt-contrib-clean'); + grunt.loadNpmTasks('grunt-open'); - grunt.registerTask('default', ['bower_update','connect','watch']); + grunt.registerTask('default', ['exec:bower_update','clean:src','exec:build_sphinx','connect','open','watch']); grunt.registerTask('build', ['clean:dist','compass:dist','copy:dist']); } diff --git a/demo_docs/source/index.rst b/demo_docs/source/index.rst index 5493b29b..c719bb92 100644 --- a/demo_docs/source/index.rst +++ b/demo_docs/source/index.rst @@ -11,7 +11,7 @@ Contents: .. toctree:: :maxdepth: 2 - +test Indices and tables ================== diff --git a/package.json b/package.json index 7f85967d..c4db5be4 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "grunt-contrib-connect": "0.5.0", "grunt-contrib-copy": "0.4.1", "grunt-contrib-clean": "0.5.0", + "grunt-open": "0.2.2", "matchdep": "~0.1.2" } }