Commit 30df201a authored by Heinrich Fenkart's avatar Heinrich Fenkart
Browse files

Use a Jekyll plugin instead of the `copy:configBridge` grunt task

parent e27dc5d7
Showing with 10 additions and 6 deletions
+10 -6
...@@ -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
......
...@@ -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.
......
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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment