Skip to content
GitLab
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
30df201a
Commit
30df201a
authored
10 years ago
by
Heinrich Fenkart
Browse files
Options
Download
Email Patches
Plain Diff
Use a Jekyll plugin instead of the `copy:configBridge` grunt task
parent
e27dc5d7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+0
-1
.gitignore
Gruntfile.js
+1
-5
Gruntfile.js
docs/_plugins/bridge.rb
+9
-0
docs/_plugins/bridge.rb
with
10 additions
and
6 deletions
+10
-6
.gitignore
+
0
-
1
View file @
30df201a
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
_gh_pages
_gh_pages
_site
_site
.ruby-version
.ruby-version
docs/_data/configBridge.json
# Numerous always-ignore extensions
# Numerous always-ignore extensions
*.diff
*.diff
...
...
This diff is collapsed.
Click to expand it.
Gruntfile.js
+
1
-
5
View file @
30df201a
...
@@ -283,10 +283,6 @@ module.exports = function (grunt) {
...
@@ -283,10 +283,6 @@ module.exports = function (grunt) {
docs
:
{
docs
:
{
src
:
'
dist/*/*
'
,
src
:
'
dist/*/*
'
,
dest
:
'
docs/
'
dest
:
'
docs/
'
},
configBridge
:
{
src
:
'
grunt/configBridge.json
'
,
dest
:
'
docs/_data/configBridge.json
'
}
}
},
},
...
@@ -457,7 +453,7 @@ module.exports = function (grunt) {
...
@@ -457,7 +453,7 @@ module.exports = function (grunt) {
grunt
.
registerTask
(
'
lint-docs-css
'
,
[
'
csslint:docs
'
,
'
csslint:examples
'
]);
grunt
.
registerTask
(
'
lint-docs-css
'
,
[
'
csslint:docs
'
,
'
csslint:examples
'
]);
grunt
.
registerTask
(
'
docs-js
'
,
[
'
uglify:docsJs
'
,
'
uglify:customize
'
]);
grunt
.
registerTask
(
'
docs-js
'
,
[
'
uglify:docsJs
'
,
'
uglify:customize
'
]);
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
'
,
'
copy:configBridge
'
,
'
build-customizer
'
]);
grunt
.
registerTask
(
'
docs
'
,
[
'
docs-css
'
,
'
lint-docs-css
'
,
'
docs-js
'
,
'
lint-docs-js
'
,
'
clean:docs
'
,
'
copy:docs
'
,
'
build-customizer
'
]);
// 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.
...
...
This diff is collapsed.
Click to expand it.
docs/_plugins/bridge.rb
0 → 100644
+
9
-
0
View file @
30df201a
require
'yaml'
module
Bridge
class
Generator
<
Jekyll
::
Generator
def
generate
(
site
)
site
.
data
[
"configBridge"
]
=
YAML
.
load_file
(
"./grunt/configBridge.json"
)
end
end
end
\ No newline at end of file
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