Skip to content

Commit

Permalink
Update to gitbook - 0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
sb2nov committed Apr 19, 2014
1 parent fa742a6 commit 429e4d1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
23 changes: 22 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-gitbook');
grunt.loadNpmTasks('grunt-gh-pages');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-http-server');

grunt.initConfig({
'gitbook': {
development: {
dest: path.join(__dirname, ".grunt/gitbook"),
output: path.join(__dirname, ".grunt/gitbook"),
input: "./",
title: "Mac OS X Setup Guide",
description: "Guide to setting up developer environment on OS X",
Expand All @@ -23,9 +24,29 @@ module.exports = function (grunt) {
},
'clean': {
files: '.grunt'
},
'http-server': {
'dev': {
// the server root directory
root: '.grunt/gitbook',

port: 4000,
host: "127.0.0.1",

showDir : true,
autoIndex: true,
defaultExt: "html",

//wait or not for the process to finish
runInBackground: false
}
}
});

grunt.registerTask('test', [
'gitbook',
'http-server'
]);
grunt.registerTask('publish', [
'gitbook',
'gh-pages',
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@
"url": "https://github.com/sb2nov/mac-setup/issues"
},
"homepage": "http://sourabhbajaj/mac-setup",
"dependencies": {},
"devDependencies": {
"grunt": "^0.4.4",
"grunt": "0.4.1",
"grunt-contrib-clean": "~0.5.0",
"grunt-gh-pages": "0.9.1",
"grunt-gitbook": "0.1.1"
"grunt-gitbook": "0.2.3"
},
"peerDependencies": {
"grunt": "~0.4.1"
"grunt": "0.4.1"
}
}

0 comments on commit 429e4d1

Please sign in to comment.