diff --git a/Gruntfile.js b/Gruntfile.js
index f59984837a..eaa9858090 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -292,7 +292,8 @@ module.exports = function (grunt) {
}
},
files: {
- 'docs/_includes/customizer-variables.html': 'docs/customizer-variables.jade'
+ 'docs/_includes/customizer-variables.html': 'docs/customizer-variables.jade',
+ 'docs/_includes/nav-customize.html': 'docs/customizer-nav.jade'
}
}
},
@@ -363,7 +364,7 @@ module.exports = function (grunt) {
var testSubtasks = [];
// Skip core tests if running a different subset of the test suite
if (!process.env.TWBS_TEST || process.env.TWBS_TEST === 'core') {
- testSubtasks = testSubtasks.concat(['dist-css', 'csslint', 'jshint', 'jscs', 'qunit', 'build-customizer-vars-form']);
+ testSubtasks = testSubtasks.concat(['dist-css', 'csslint', 'jshint', 'jscs', 'qunit', 'build-customizer-html']);
}
// Skip HTML validation if running a different subset of the test suite
if (!process.env.TWBS_TEST || process.env.TWBS_TEST === 'validate-html') {
@@ -407,8 +408,8 @@ module.exports = function (grunt) {
grunt.registerTask('build-glyphicons-data', generateGlyphiconsData);
// task for building customizer
- grunt.registerTask('build-customizer', ['build-customizer-vars-form', 'build-raw-files']);
- grunt.registerTask('build-customizer-vars-form', 'jade');
+ grunt.registerTask('build-customizer', ['build-customizer-html', 'build-raw-files']);
+ grunt.registerTask('build-customizer-html', 'jade');
grunt.registerTask('build-raw-files', 'Add scripts/less files to customizer.', function () {
var banner = grunt.template.process('<%= banner %>');
generateRawFilesJs(banner);
diff --git a/docs/_includes/customizer-variables.html b/docs/_includes/customizer-variables.html
index d03c3e6e82..3de586c7e5 100644
--- a/docs/_includes/customizer-variables.html
+++ b/docs/_includes/customizer-variables.html
@@ -1,5 +1,5 @@
-
+
Colors
Gray and brand colors for use across Bootstrap.
@@ -1683,4 +1683,4 @@
For @screen-lg-min
and up.
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/docs/_includes/nav-customize.html b/docs/_includes/nav-customize.html
index 363a5db8b5..af8558fa1f 100644
--- a/docs/_includes/nav-customize.html
+++ b/docs/_includes/nav-customize.html
@@ -1,40 +1,46 @@
-
- Less components
-
-
- jQuery plugins
-
-
- Less variables
+
+
+Less components
+jQuery plugins
+Less variables
-
- Download
-
+Download
+
\ No newline at end of file
diff --git a/docs/customizer-nav.jade b/docs/customizer-nav.jade
new file mode 100644
index 0000000000..c4f6ddf105
--- /dev/null
+++ b/docs/customizer-nav.jade
@@ -0,0 +1,15 @@
+// NOTE: DO NOT EDIT THE FOLLOWING SECTION DIRECTLY! It is autogenerated via the `build-customizer-html` Grunt task using the customizer-nav.jade template.
+li
+ a(href='#less') Less components
+li
+ a(href='#plugins') jQuery plugins
+li
+ a(href='#less-variables') Less variables
+ ul.nav
+ each section in sections
+ if section.customizable
+ li
+ a(href='#'+section.id)= section.heading
+li
+ a(href='#download') Download
+// NOTE: DO NOT EDIT THE PRECEDING SECTION DIRECTLY! It is autogenerated via the `build-customizer-html` Grunt task using the customizer-nav.jade template.
diff --git a/docs/customizer-variables.jade b/docs/customizer-variables.jade
index 19f3672b0b..3c74573be0 100644
--- a/docs/customizer-variables.jade
+++ b/docs/customizer-variables.jade
@@ -1,4 +1,4 @@
-// NOTE: DO NOT EDIT THE FOLLOWING SECTION DIRECTLY! It is autogenerated via the `build-customizer-vars-form` Grunt task using the customizer-variables.jade template.
+// NOTE: DO NOT EDIT THE FOLLOWING SECTION DIRECTLY! It is autogenerated via the `build-customizer-html` Grunt task using the customizer-variables.jade template.
each section in sections
if section.customizable
h2(id=section.id)= section.heading
@@ -18,4 +18,4 @@ each section in sections
data-var=variable.name)
if variable.docstring
p.help-block!= variable.docstring.html
-// NOTE: DO NOT EDIT THE PRECEDING SECTION DIRECTLY! It is autogenerated via the `build-customizer-vars-form` Grunt task using the customizer-variables.jade template.
+// NOTE: DO NOT EDIT THE PRECEDING SECTION DIRECTLY! It is autogenerated via the `build-customizer-html` Grunt task using the customizer-variables.jade template.