Skip to content

Commit

Permalink
Add a target to generate the gh-pages files.
Browse files Browse the repository at this point in the history
It sets `github: true` for us.
  • Loading branch information
XhmikosR committed Nov 20, 2014
1 parent e7818e9 commit cb29c9a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,15 @@ module.exports = function (grunt) {
},

jekyll: {
docs: {}
options: {
config: '_config.yml'
},
docs: {},
github: {
options: {
raw: 'github: true'
}
}
},

jade: {
Expand Down Expand Up @@ -382,7 +390,7 @@ module.exports = function (grunt) {
require('time-grunt')(grunt);

// Docs HTML validation task
grunt.registerTask('validate-html', ['jekyll', 'validation']);
grunt.registerTask('validate-html', ['jekyll:docs', 'validation']);

var runSubset = function (subset) {
return !process.env.TWBS_TEST || process.env.TWBS_TEST === subset;
Expand Down Expand Up @@ -456,6 +464,8 @@ module.exports = function (grunt) {
grunt.registerTask('lint-docs-js', ['jshint:assets', 'jscs:assets']);
grunt.registerTask('docs', ['docs-css', 'lint-docs-css', 'docs-js', 'lint-docs-js', 'clean:docs', 'copy:docs', 'build-customizer']);

grunt.registerTask('docs-github', ['jekyll:github']);

// Task for updating the cached npm packages used by the Travis build (which are controlled by test-infra/npm-shrinkwrap.json).
// This task should be run and the updated file should be committed whenever Bootstrap's dependencies change.
grunt.registerTask('update-shrinkwrap', ['exec:npmUpdate', '_update-shrinkwrap']);
Expand Down

0 comments on commit cb29c9a

Please sign in to comment.