diff options
| author | XhmikosR <[email protected]> | 2014-11-14 15:00:02 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2014-11-20 08:02:05 +0200 |
| commit | cb29c9a41d4835155d12cc48b7fcbabe97160db7 (patch) | |
| tree | 7d3f38fa06817957f654b3b2ec2568e44a09228f | |
| parent | e7818e979f46da63a91146c7051e6aaef24288c8 (diff) | |
| download | bootstrap-cb29c9a41d4835155d12cc48b7fcbabe97160db7.tar.xz bootstrap-cb29c9a41d4835155d12cc48b7fcbabe97160db7.zip | |
Add a target to generate the gh-pages files.
It sets `github: true` for us.
| -rw-r--r-- | Gruntfile.js | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 3c5e59273..9a1031239 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -296,7 +296,15 @@ module.exports = function (grunt) { }, jekyll: { - docs: {} + options: { + config: '_config.yml' + }, + docs: {}, + github: { + options: { + raw: 'github: true' + } + } }, jade: { @@ -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; @@ -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']); |
