mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
Merge pull request #15134 from twbs/docs-gh
Add a target to generate the gh-pages files.
This commit is contained in:
commit
4e2db80cbf
14
Gruntfile.js
14
Gruntfile.js
@ -296,7 +296,15 @@ module.exports = function (grunt) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
jekyll: {
|
jekyll: {
|
||||||
docs: {}
|
options: {
|
||||||
|
config: '_config.yml'
|
||||||
|
},
|
||||||
|
docs: {},
|
||||||
|
github: {
|
||||||
|
options: {
|
||||||
|
raw: 'github: true'
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
jade: {
|
jade: {
|
||||||
@ -382,7 +390,7 @@ module.exports = function (grunt) {
|
|||||||
require('time-grunt')(grunt);
|
require('time-grunt')(grunt);
|
||||||
|
|
||||||
// Docs HTML validation task
|
// Docs HTML validation task
|
||||||
grunt.registerTask('validate-html', ['jekyll', 'validation']);
|
grunt.registerTask('validate-html', ['jekyll:docs', 'validation']);
|
||||||
|
|
||||||
var runSubset = function (subset) {
|
var runSubset = function (subset) {
|
||||||
return !process.env.TWBS_TEST || process.env.TWBS_TEST === 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('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', ['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).
|
// 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.
|
// 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']);
|
grunt.registerTask('update-shrinkwrap', ['exec:npmUpdate', '_update-shrinkwrap']);
|
||||||
|
Loading…
Reference in New Issue
Block a user