Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
30df201a
Commit
30df201a
authored
Nov 05, 2014
by
Heinrich Fenkart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a Jekyll plugin instead of the `copy:configBridge` grunt task
parent
e27dc5d7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
.gitignore
.gitignore
+0
-1
Gruntfile.js
Gruntfile.js
+1
-5
docs/_plugins/bridge.rb
docs/_plugins/bridge.rb
+9
-0
No files found.
.gitignore
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
...
...
Gruntfile.js
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.
...
...
docs/_plugins/bridge.rb
0 → 100644
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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