Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
4e2db80c
Commit
4e2db80c
authored
10 years ago
by
XhmikosR
Browse files
Options
Download
Plain Diff
Merge pull request #15134 from twbs/docs-gh
Add a target to generate the gh-pages files.
parents
e6fc081c
cb29c9a4
4 merge requests
!28721
Hot test
,
!16605
Test pull please ignore
,
!22103
test
,
!25326
Adjust examples
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Gruntfile.js
+12
-2
Gruntfile.js
with
12 additions
and
2 deletions
+12
-2
Gruntfile.js
+
12
-
2
View file @
4e2db80c
...
@@ -296,7 +296,15 @@ module.exports = function (grunt) {
...
@@ -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) {
...
@@ -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) {
...
@@ -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
'
]);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets