docs: {
src: 'dist/*/*',
dest: 'docs/'
- },
- configBridge: {
- src: 'grunt/configBridge.json',
- dest: 'docs/_data/configBridge.json'
}
},
grunt.registerTask('lint-docs-css', ['csslint:docs', 'csslint:examples']);
grunt.registerTask('docs-js', ['uglify:docsJs', 'uglify:customize']);
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).
// This task should be run and the updated file should be committed whenever Bootstrap's dependencies change.
--- /dev/null
+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