diff --git a/Gruntfile.js b/Gruntfile.js index c6fe7982..717c0395 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -73,7 +73,7 @@ module.exports = function (grunt) { 'dist-css': 'dist/css', 'dist-js': 'dist/js', 'docs-dist-js': 'docs/dist/js', - 'docs-dist-css': 'docs/dist/css', + 'docs-dist-css': 'docs/dist/css' }, eslint: { @@ -263,6 +263,15 @@ module.exports = function (grunt) { }, copy: { + 'dist-to-docs': { // for example templates + expand: true, + cwd: 'dist', + src: [ + 'js/*.iife*', + 'css/*.*' + ], + dest: 'docs/dist/' + }, 'bs-docs-js-vendor': { expand: true, cwd: '../bootstrap/docs/assets/js/vendor', @@ -276,9 +285,7 @@ module.exports = function (grunt) { 'bs-docs-plugins': { expand: true, cwd: '../bootstrap/docs/_plugins', - src: [ - '**/*', '!bridge.rb' - ], + src: ['**/*', '!bridge.rb'], dest: 'docs/_plugins/' }, @@ -346,20 +353,6 @@ module.exports = function (grunt) { '**/*' ], dest: 'docs/content/' - }, - 'bs-docs-examples': { - options: { - // //https://regex101.com/r/cZ7aO8/2 - process: function (content, srcpath) { - return content.replace(/(---[\s\S]+?---)([\s\S]+)/mg, referenceDocNotice); - } - }, - expand: true, - cwd: '../bootstrap/docs/examples', - src: [ - '**/*' - ], - dest: 'docs/examples/' } }, @@ -608,7 +601,6 @@ module.exports = function (grunt) { 'copy:bs-docs-getting-started', 'copy:bs-docs-components', 'copy:bs-docs-content', - 'copy:bs-docs-examples', 'copy:bs-docs-plugins' ]); diff --git a/docs/_includes/footer-example.html b/docs/_includes/footer-example.html new file mode 100644 index 00000000..b28af1ba --- /dev/null +++ b/docs/_includes/footer-example.html @@ -0,0 +1,19 @@ + + + + +{% if site.data.minified %} + +{% else %} + +{% endif %} + + + + + + diff --git a/docs/_includes/header-example.html b/docs/_includes/header-example.html new file mode 100644 index 00000000..b2d2e262 --- /dev/null +++ b/docs/_includes/header-example.html @@ -0,0 +1,12 @@ +{% include meta.html %} + + + + + + +{% if site.data.minified %} + +{% else %} + +{% endif %} diff --git a/docs/_includes/header.html b/docs/_includes/header.html index 9053c1f5..528c804c 100644 --- a/docs/_includes/header.html +++ b/docs/_includes/header.html @@ -1,17 +1,4 @@ - - - - - - - -