From 546fd9d5b20e4dd9752cf0328ba24bcee13990a6 Mon Sep 17 00:00:00 2001
From: Kevin Ross
Date: Tue, 1 Mar 2016 10:49:36 -0600
Subject: [PATCH 01/39] #901 core rollup and sass is working
---
.babelrc | 2 +-
scss/.scss-lint.yml => .scss-lint.yml | 0
gulpfile.babel.js | 68 ++++++
js/src/index.js | 2 +-
package.json | 7 +
scss/.csscomb.json | 304 --------------------------
scss/mixins/_drawer.scss | 6 +-
7 files changed, 80 insertions(+), 309 deletions(-)
rename scss/.scss-lint.yml => .scss-lint.yml (100%)
create mode 100644 gulpfile.babel.js
delete mode 100644 scss/.csscomb.json
diff --git a/.babelrc b/.babelrc
index 85bf7f17..bea32a4a 100644
--- a/.babelrc
+++ b/.babelrc
@@ -1,3 +1,3 @@
{
- presets: [ "es2015-rollup" ]
+ "presets": [ "es2015" ]
}
diff --git a/scss/.scss-lint.yml b/.scss-lint.yml
similarity index 100%
rename from scss/.scss-lint.yml
rename to .scss-lint.yml
diff --git a/gulpfile.babel.js b/gulpfile.babel.js
new file mode 100644
index 00000000..0e98378e
--- /dev/null
+++ b/gulpfile.babel.js
@@ -0,0 +1,68 @@
+import {Preset, Clean, MinifyCss, Sass, RollupEs, RollupUmd, RollupIife, ScssLint, EsLint, TaskSeries} from 'gulp-pipeline/src/index'
+
+// debug the project source - remove for repo
+//import {Clean, CleanDigest, Images, MinifyCss, Sass, RollupIife, ScssLint, EsLint, Rev, TaskSeries} from 'gulp-pipeline'
+//import Preset from '../../../gulp-pipeline/src/preset'
+import extend from 'extend'
+
+import stringify from 'stringify-object'
+import gulp from 'gulp'
+import findup from 'findup-sync'
+const node_modules = findup('node_modules')
+
+
+let preset = Preset.baseline({
+ javascripts: {
+ source: { options: {cwd: 'js/src'}},
+ watch: {options: {cwd: 'js/src'}},
+ test: {options: {cwd: 'js/tests'}}
+ },
+ stylesheets: {
+ source: {options: {cwd: 'scss'}},
+ watch: {options: {cwd: 'scss'}}
+ },
+ images: {
+ source: {options: {cwd: 'images'}},
+ watch: {options: {cwd: 'images'}}
+ }
+})
+
+
+// When converting non-modular dependencies into usable ones using rollup-plugin-commonjs, if they don't have properly read exports add them here.
+let namedExports = {}
+//namedExports[`${node_modules}/corejs-typeahead/dist/bloodhound.js`] = ['Bloodhound']
+
+let rollupConfig = {
+ commonjs: {
+ options: {
+ namedExports: namedExports
+ }
+ }
+}
+
+let rollups = [
+ new RollupEs(gulp, preset, extend(true, {}, rollupConfig, {options: {dest: 'bootstrap-material-design.es.js'}})),
+ new RollupUmd(gulp, preset, extend(true, {}, rollupConfig, {options: {dest: 'bootstrap-material-design.umd.js', moduleName: 'bootstrapMaterialDesign'}})),
+ new RollupIife(gulp, preset, extend(true, {}, rollupConfig, {options: {dest: 'bootstrap-material-design.iife.js', moduleName: 'bootstrapMaterialDesign'}})),
+]
+
+let eslint = new EsLint(gulp, preset)
+let scsslint = new ScssLint(gulp, preset)
+let sass = new Sass(gulp, preset, {debug: true})
+let lint = [scsslint, eslint]
+
+// instantiate ordered array of recipes (for each instantiation the tasks will be created e.g. sass and sass:watch)
+let recipes = [
+ new Clean(gulp, preset),
+ lint,
+ [
+ sass,
+ rollups
+ ]
+]
+
+// Simple helper to create the default and watch tasks as a sequence of the recipes already defined
+new TaskSeries(gulp, 'default', recipes)
+new TaskSeries(gulp, 'lint', lint)
+new TaskSeries(gulp, 'js', [eslint, rollups])
+new TaskSeries(gulp, 'css', [scsslint, sass])
diff --git a/js/src/index.js b/js/src/index.js
index b12aa4e7..5ef54bf8 100644
--- a/js/src/index.js
+++ b/js/src/index.js
@@ -8,7 +8,7 @@
*/
/* eslint-disable no-unused-vars */
-import '../../node_modules/babel-polyfill/dist/polyfill'
+import 'babel-polyfill/dist/polyfill'
// invalidComponentMatches is currently disabled due to https://github.com/rollup/rollup/issues/428#issuecomment-170066452
import Checkbox from './checkbox'
diff --git a/package.json b/package.json
index 94d27d34..6af062b9 100644
--- a/package.json
+++ b/package.json
@@ -38,6 +38,13 @@
"tether": "^1.2.0"
},
"devDependencies": {
+ "babel-preset-es2015": "^6.6.0",
+ "babel-eslint": "^5.0.0",
+ "babel-polyfill": "^6.6",
+ "gulp": "^3.9.1",
+ "gulp-pipeline": "^0.4"
+ },
+ "old-grunt-devDependencies": {
"autoprefixer": "^6.3.3",
"babel-eslint": "^5.0.0",
"babel-polyfill": "^6.6",
diff --git a/scss/.csscomb.json b/scss/.csscomb.json
deleted file mode 100644
index 40695a47..00000000
--- a/scss/.csscomb.json
+++ /dev/null
@@ -1,304 +0,0 @@
-{
- "always-semicolon": true,
- "block-indent": 2,
- "color-case": "lower",
- "color-shorthand": true,
- "element-case": "lower",
- "eof-newline": true,
- "leading-zero": false,
- "remove-empty-rulesets": true,
- "space-after-colon": 1,
- "space-after-combinator": 1,
- "space-before-selector-delimiter": 0,
- "space-between-declarations": "\n",
- "space-after-opening-brace": "\n",
- "space-before-closing-brace": "\n",
- "space-before-colon": 0,
- "space-before-combinator": 1,
- "space-before-opening-brace": 1,
- "strip-spaces": true,
- "unitless-zero": true,
- "vendor-prefix-align": true,
- "sort-order": [
- [
- "position",
- "top",
- "right",
- "bottom",
- "left",
- "z-index",
- "display",
- "float",
- "width",
- "min-width",
- "max-width",
- "height",
- "min-height",
- "max-height",
- "-webkit-box-sizing",
- "-moz-box-sizing",
- "box-sizing",
- "-webkit-appearance",
- "padding",
- "padding-top",
- "padding-right",
- "padding-bottom",
- "padding-left",
- "margin",
- "margin-top",
- "margin-right",
- "margin-bottom",
- "margin-left",
- "overflow",
- "overflow-x",
- "overflow-y",
- "-webkit-overflow-scrolling",
- "-ms-overflow-x",
- "-ms-overflow-y",
- "-ms-overflow-style",
- "clip",
- "clear",
- "font",
- "font-family",
- "font-size",
- "font-style",
- "font-weight",
- "font-variant",
- "font-size-adjust",
- "font-stretch",
- "font-effect",
- "font-emphasize",
- "font-emphasize-position",
- "font-emphasize-style",
- "font-smooth",
- "-webkit-hyphens",
- "-moz-hyphens",
- "hyphens",
- "line-height",
- "color",
- "text-align",
- "-webkit-text-align-last",
- "-moz-text-align-last",
- "-ms-text-align-last",
- "text-align-last",
- "text-emphasis",
- "text-emphasis-color",
- "text-emphasis-style",
- "text-emphasis-position",
- "text-decoration",
- "text-indent",
- "text-justify",
- "text-outline",
- "-ms-text-overflow",
- "text-overflow",
- "text-overflow-ellipsis",
- "text-overflow-mode",
- "text-shadow",
- "text-transform",
- "text-wrap",
- "-webkit-text-size-adjust",
- "-ms-text-size-adjust",
- "letter-spacing",
- "-ms-word-break",
- "word-break",
- "word-spacing",
- "-ms-word-wrap",
- "word-wrap",
- "-moz-tab-size",
- "-o-tab-size",
- "tab-size",
- "white-space",
- "vertical-align",
- "list-style",
- "list-style-position",
- "list-style-type",
- "list-style-image",
- "pointer-events",
- "-ms-touch-action",
- "touch-action",
- "cursor",
- "visibility",
- "zoom",
- "flex-direction",
- "flex-order",
- "flex-pack",
- "flex-align",
- "table-layout",
- "empty-cells",
- "caption-side",
- "border-spacing",
- "border-collapse",
- "content",
- "quotes",
- "counter-reset",
- "counter-increment",
- "resize",
- "-webkit-user-select",
- "-moz-user-select",
- "-ms-user-select",
- "-o-user-select",
- "user-select",
- "nav-index",
- "nav-up",
- "nav-right",
- "nav-down",
- "nav-left",
- "background",
- "background-color",
- "background-image",
- "-ms-filter:\\'progid:DXImageTransform.Microsoft.gradient",
- "filter:progid:DXImageTransform.Microsoft.gradient",
- "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader",
- "filter",
- "background-repeat",
- "background-attachment",
- "background-position",
- "background-position-x",
- "background-position-y",
- "-webkit-background-clip",
- "-moz-background-clip",
- "background-clip",
- "background-origin",
- "-webkit-background-size",
- "-moz-background-size",
- "-o-background-size",
- "background-size",
- "border",
- "border-color",
- "border-style",
- "border-width",
- "border-top",
- "border-top-color",
- "border-top-style",
- "border-top-width",
- "border-right",
- "border-right-color",
- "border-right-style",
- "border-right-width",
- "border-bottom",
- "border-bottom-color",
- "border-bottom-style",
- "border-bottom-width",
- "border-left",
- "border-left-color",
- "border-left-style",
- "border-left-width",
- "border-radius",
- "border-top-left-radius",
- "border-top-right-radius",
- "border-bottom-right-radius",
- "border-bottom-left-radius",
- "-webkit-border-image",
- "-moz-border-image",
- "-o-border-image",
- "border-image",
- "-webkit-border-image-source",
- "-moz-border-image-source",
- "-o-border-image-source",
- "border-image-source",
- "-webkit-border-image-slice",
- "-moz-border-image-slice",
- "-o-border-image-slice",
- "border-image-slice",
- "-webkit-border-image-width",
- "-moz-border-image-width",
- "-o-border-image-width",
- "border-image-width",
- "-webkit-border-image-outset",
- "-moz-border-image-outset",
- "-o-border-image-outset",
- "border-image-outset",
- "-webkit-border-image-repeat",
- "-moz-border-image-repeat",
- "-o-border-image-repeat",
- "border-image-repeat",
- "outline",
- "outline-width",
- "outline-style",
- "outline-color",
- "outline-offset",
- "-webkit-box-shadow",
- "-moz-box-shadow",
- "box-shadow",
- "filter:progid:DXImageTransform.Microsoft.Alpha(Opacity",
- "-ms-filter:\\'progid:DXImageTransform.Microsoft.Alpha",
- "opacity",
- "-ms-interpolation-mode",
- "-webkit-transition",
- "-moz-transition",
- "-ms-transition",
- "-o-transition",
- "transition",
- "-webkit-transition-delay",
- "-moz-transition-delay",
- "-ms-transition-delay",
- "-o-transition-delay",
- "transition-delay",
- "-webkit-transition-timing-function",
- "-moz-transition-timing-function",
- "-ms-transition-timing-function",
- "-o-transition-timing-function",
- "transition-timing-function",
- "-webkit-transition-duration",
- "-moz-transition-duration",
- "-ms-transition-duration",
- "-o-transition-duration",
- "transition-duration",
- "-webkit-transition-property",
- "-moz-transition-property",
- "-ms-transition-property",
- "-o-transition-property",
- "transition-property",
- "-webkit-transform",
- "-moz-transform",
- "-ms-transform",
- "-o-transform",
- "transform",
- "-webkit-transform-origin",
- "-moz-transform-origin",
- "-ms-transform-origin",
- "-o-transform-origin",
- "transform-origin",
- "-webkit-animation",
- "-moz-animation",
- "-ms-animation",
- "-o-animation",
- "animation",
- "-webkit-animation-name",
- "-moz-animation-name",
- "-ms-animation-name",
- "-o-animation-name",
- "animation-name",
- "-webkit-animation-duration",
- "-moz-animation-duration",
- "-ms-animation-duration",
- "-o-animation-duration",
- "animation-duration",
- "-webkit-animation-play-state",
- "-moz-animation-play-state",
- "-ms-animation-play-state",
- "-o-animation-play-state",
- "animation-play-state",
- "-webkit-animation-timing-function",
- "-moz-animation-timing-function",
- "-ms-animation-timing-function",
- "-o-animation-timing-function",
- "animation-timing-function",
- "-webkit-animation-delay",
- "-moz-animation-delay",
- "-ms-animation-delay",
- "-o-animation-delay",
- "animation-delay",
- "-webkit-animation-iteration-count",
- "-moz-animation-iteration-count",
- "-ms-animation-iteration-count",
- "-o-animation-iteration-count",
- "animation-iteration-count",
- "-webkit-animation-direction",
- "-moz-animation-direction",
- "-ms-animation-direction",
- "-o-animation-direction",
- "animation-direction"
- ]
- ]
-}
diff --git a/scss/mixins/_drawer.scss b/scss/mixins/_drawer.scss
index a7007a25..41430f7f 100644
--- a/scss/mixins/_drawer.scss
+++ b/scss/mixins/_drawer.scss
@@ -187,7 +187,7 @@
// Overlay - left/right responsive overlay classes and marker class
@mixin mdb-drawer-x-overlay-down($breakpoint) {
// e.g. &, &-sm, &-md, &-lg
- $name: mdb-drawer-breakpoint-name($breakpoint, '-down');
+ $name: mdb-drawer-breakpoint-name($breakpoint, "-down");
&.mdb-drawer-overlay {
#{unquote($name)} { // mdb-drawer-overlay, mdb-drawer-overlay-sm, mdb-drawer-overlay-md, mdb-drawer-overlay-lg
@@ -199,11 +199,11 @@
// Must double up on the .mdb-drawer-overlay class to increase specificity otherwise the
// responsive mdb-drawer-in-* media queries above win (and overlay is ignored)
&.mdb-drawer-overlay {
- @include mdb-drawer-x-overlay()
+ @include mdb-drawer-x-overlay();
}
} @else {
@include media-breakpoint-down($breakpoint) { // overlay responsive class
- @include mdb-drawer-x-overlay()
+ @include mdb-drawer-x-overlay();
}
}
}
From ef01aa07c3aa3081b2203fc9a1ceb0f50cb88134 Mon Sep 17 00:00:00 2001
From: Kevin Ross
Date: Tue, 1 Mar 2016 16:07:46 -0600
Subject: [PATCH 02/39] docs.iife is being generated, albeit without the vendor
js - need to combine that separately due to the non-cjs/umd modules
---
js/.eslintrc => .eslintrc | 0
.travis.yml | 3 +-
_config.yml | 2 +
docs/_includes/footer-example.html | 3 +-
docs/_includes/footer.html | 6 +--
docs/assets/js/src/index.js | 2 +-
docs/getting-started/introduction.md | 6 ++-
gulpfile.babel.js | 68 +++++++++++++++++++++++++---
js/src/index.js | 1 +
package.json | 3 +-
10 files changed, 78 insertions(+), 16 deletions(-)
rename js/.eslintrc => .eslintrc (100%)
diff --git a/js/.eslintrc b/.eslintrc
similarity index 100%
rename from js/.eslintrc
rename to .eslintrc
diff --git a/.travis.yml b/.travis.yml
index 979c77ac..28d7a46d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,8 +1,9 @@
branches:
except:
- v4-dist
- # remove this later
+ # remove the following later:
- v4-dev
+ - v4-gulp
sudo: false # use the container infrastructure
language: node_js
diff --git a/_config.yml b/_config.yml
index e7b88534..e104024f 100644
--- a/_config.yml
+++ b/_config.yml
@@ -61,6 +61,8 @@ cdn:
bootstrap: https://cdn.rawgit.com/twbs/bootstrap/VERSION/dist/js/bootstrap
tether: https://cdn.rawgit.com/HubSpot/tether/vVERSION/dist/js/tether
+ 'ie10-viewport-bug-workaround': https://maxcdn.bootstrapcdn.com/js/ie10-viewport-bug-workaround.js
+
#twitter:
diff --git a/docs/_includes/footer-example.html b/docs/_includes/footer-example.html
index fc380844..599fbe41 100644
--- a/docs/_includes/footer-example.html
+++ b/docs/_includes/footer-example.html
@@ -12,8 +12,7 @@
{% endif %}
-
-
+
-
{% else %}
-
{% endif %}
-
+
+
+
{% if page.layout == "docs" %}
diff --git a/docs/assets/js/src/index.js b/docs/assets/js/src/index.js
index bb902b73..6d3243f0 100644
--- a/docs/assets/js/src/index.js
+++ b/docs/assets/js/src/index.js
@@ -1,6 +1,6 @@
import Style from './style'
import Clipboard from 'clipboard'
-import anchors from 'anchor'
+import anchors from 'anchor-js'
// import all the mdb code
import '../../../../js/src/index' // eslint-disable-line no-unused-vars
diff --git a/docs/getting-started/introduction.md b/docs/getting-started/introduction.md
index 2270d31b..361c808d 100644
--- a/docs/getting-started/introduction.md
+++ b/docs/getting-started/introduction.md
@@ -37,8 +37,9 @@ Add jQuery, Bootstrap, and our Javascript plugins near the end of your pages, ri
{% highlight html %}
-
+
+
@@ -78,8 +79,9 @@ Put it all together and your pages should look like this:
-
+
+
diff --git a/gulpfile.babel.js b/gulpfile.babel.js
index 0e98378e..d63b03ca 100644
--- a/gulpfile.babel.js
+++ b/gulpfile.babel.js
@@ -13,7 +13,7 @@ const node_modules = findup('node_modules')
let preset = Preset.baseline({
javascripts: {
- source: { options: {cwd: 'js/src'}},
+ source: {options: {cwd: 'js/src'}},
watch: {options: {cwd: 'js/src'}},
test: {options: {cwd: 'js/tests'}}
},
@@ -31,24 +31,46 @@ let preset = Preset.baseline({
// When converting non-modular dependencies into usable ones using rollup-plugin-commonjs, if they don't have properly read exports add them here.
let namedExports = {}
//namedExports[`${node_modules}/corejs-typeahead/dist/bloodhound.js`] = ['Bloodhound']
+//namedExports[`${node_modules}/anchor-js/anchor.js`] = ['AnchorJS']
let rollupConfig = {
+ debug: true,
+ options: {
+ external: [
+ 'anchor-js',
+ 'clipboard'
+ ],
+ globals: {
+ 'anchor-js': 'anchors',
+ clipboard: 'Clipboard'
+ }
+ },
commonjs: {
options: {
- namedExports: namedExports
+ namedExports: namedExports,
}
}
}
let rollups = [
new RollupEs(gulp, preset, extend(true, {}, rollupConfig, {options: {dest: 'bootstrap-material-design.es.js'}})),
- new RollupUmd(gulp, preset, extend(true, {}, rollupConfig, {options: {dest: 'bootstrap-material-design.umd.js', moduleName: 'bootstrapMaterialDesign'}})),
- new RollupIife(gulp, preset, extend(true, {}, rollupConfig, {options: {dest: 'bootstrap-material-design.iife.js', moduleName: 'bootstrapMaterialDesign'}})),
+ new RollupUmd(gulp, preset, extend(true, {}, rollupConfig, {
+ options: {
+ dest: 'bootstrap-material-design.umd.js',
+ moduleName: 'bootstrapMaterialDesign'
+ }
+ })),
+ new RollupIife(gulp, preset, extend(true, {}, rollupConfig, {
+ options: {
+ dest: 'bootstrap-material-design.iife.js',
+ moduleName: 'bootstrapMaterialDesign'
+ }
+ })),
]
let eslint = new EsLint(gulp, preset)
let scsslint = new ScssLint(gulp, preset)
-let sass = new Sass(gulp, preset, {debug: true})
+let sass = new Sass(gulp, preset)
let lint = [scsslint, eslint]
// instantiate ordered array of recipes (for each instantiation the tasks will be created e.g. sass and sass:watch)
@@ -58,7 +80,8 @@ let recipes = [
[
sass,
rollups
- ]
+ ],
+ new MinifyCss(gulp, preset)
]
// Simple helper to create the default and watch tasks as a sequence of the recipes already defined
@@ -66,3 +89,36 @@ new TaskSeries(gulp, 'default', recipes)
new TaskSeries(gulp, 'lint', lint)
new TaskSeries(gulp, 'js', [eslint, rollups])
new TaskSeries(gulp, 'css', [scsslint, sass])
+
+
+let docsPreset = Preset.baseline({
+ javascripts: {
+ source: {options: {cwd: 'docs/assets/js/src'}},
+ watch: {options: {cwd: 'docs/assets/js/src'}},
+ test: {options: {cwd: 'docs/assets/js/tests'}},
+ dest: 'docs/dist'
+ },
+ stylesheets: {
+ source: {options: {cwd: 'docs/assets/scss'}},
+ watch: {options: {cwd: 'docs/assets/scss'}},
+ dest: 'docs/dist'
+ }
+ /*,
+ images: {
+ source: {options: {cwd: 'docs/assets/img'}},
+ watch: {options: {cwd: 'docs/assets/img'}},
+ dest: 'docs/dist'
+ } */
+})
+
+const docsConfig = {task: {prefix: 'docs:'}}
+
+let docs = [
+ new EsLint(gulp, docsPreset, docsConfig),
+ new RollupIife(gulp, docsPreset, extend(true, {}, docsConfig, rollupConfig, {
+ options: {
+ dest: 'docs.iife.js',
+ moduleName: 'docs'
+ }
+ }))
+]
diff --git a/js/src/index.js b/js/src/index.js
index 5ef54bf8..5347d03f 100644
--- a/js/src/index.js
+++ b/js/src/index.js
@@ -9,6 +9,7 @@
/* eslint-disable no-unused-vars */
import 'babel-polyfill/dist/polyfill'
+import 'bootstrap'
// invalidComponentMatches is currently disabled due to https://github.com/rollup/rollup/issues/428#issuecomment-170066452
import Checkbox from './checkbox'
diff --git a/package.json b/package.json
index 6af062b9..061c06a6 100644
--- a/package.json
+++ b/package.json
@@ -38,9 +38,10 @@
"tether": "^1.2.0"
},
"devDependencies": {
- "babel-preset-es2015": "^6.6.0",
"babel-eslint": "^5.0.0",
"babel-polyfill": "^6.6",
+ "babel-preset-es2015": "^6.6.0",
+ "extend": "^3.0.0",
"gulp": "^3.9.1",
"gulp-pipeline": "^0.4"
},
From 35d9270ecb57e8b39952979d57f8a31e0558dd1a Mon Sep 17 00:00:00 2001
From: Kevin Ross
Date: Tue, 1 Mar 2016 16:43:08 -0600
Subject: [PATCH 03/39] docs scsslint and sass works
---
docs/assets/scss/mdb/_clipboard-js.scss | 2 +-
docs/assets/scss/mdb/_drawer.scss | 2 +-
docs/assets/scss/mdb/_sidebar.scss | 2 +-
gulpfile.babel.js | 32 ++++++++++++++++++-------
4 files changed, 26 insertions(+), 12 deletions(-)
diff --git a/docs/assets/scss/mdb/_clipboard-js.scss b/docs/assets/scss/mdb/_clipboard-js.scss
index 112fffa9..145cdb60 100644
--- a/docs/assets/scss/mdb/_clipboard-js.scss
+++ b/docs/assets/scss/mdb/_clipboard-js.scss
@@ -1,7 +1,7 @@
.btn-clipboard {
//color: #818a91;
- border-radius: $border-radius;
text-transform: uppercase;
+ border-radius: $border-radius;
&:hover {
color: $gray; // #fff;
diff --git a/docs/assets/scss/mdb/_drawer.scss b/docs/assets/scss/mdb/_drawer.scss
index c2c621c5..e70bca83 100644
--- a/docs/assets/scss/mdb/_drawer.scss
+++ b/docs/assets/scss/mdb/_drawer.scss
@@ -1,8 +1,8 @@
.bd-example[data-example-id*="drawer-"] {
+ min-height: 235px;
padding-top: 0;
padding-right: 0;
padding-left: 0;
- min-height: 235px;
}
.bd-example[data-example-id*="drawer-1"] {
diff --git a/docs/assets/scss/mdb/_sidebar.scss b/docs/assets/scss/mdb/_sidebar.scss
index 0d5c14c0..28caed9d 100644
--- a/docs/assets/scss/mdb/_sidebar.scss
+++ b/docs/assets/scss/mdb/_sidebar.scss
@@ -1,8 +1,8 @@
.mdb-toc-item-reference {
+ padding: .25rem .75rem;
margin-top: 1rem;
//margin-bottom: 1rem;
- padding: .25rem .75rem;
}
.bd-search {
diff --git a/gulpfile.babel.js b/gulpfile.babel.js
index d63b03ca..cde628a8 100644
--- a/gulpfile.babel.js
+++ b/gulpfile.babel.js
@@ -1,4 +1,4 @@
-import {Preset, Clean, MinifyCss, Sass, RollupEs, RollupUmd, RollupIife, ScssLint, EsLint, TaskSeries} from 'gulp-pipeline/src/index'
+import {Preset, Clean, MinifyCss, Sass, RollupEs, RollupUmd, RollupIife, ScssLint, EsLint, TaskSeries, Uglify} from 'gulp-pipeline/src/index'
// debug the project source - remove for repo
//import {Clean, CleanDigest, Images, MinifyCss, Sass, RollupIife, ScssLint, EsLint, Rev, TaskSeries} from 'gulp-pipeline'
@@ -34,7 +34,7 @@ let namedExports = {}
//namedExports[`${node_modules}/anchor-js/anchor.js`] = ['AnchorJS']
let rollupConfig = {
- debug: true,
+ //debug: true,
options: {
external: [
'anchor-js',
@@ -114,11 +114,25 @@ let docsPreset = Preset.baseline({
const docsConfig = {task: {prefix: 'docs:'}}
let docs = [
- new EsLint(gulp, docsPreset, docsConfig),
- new RollupIife(gulp, docsPreset, extend(true, {}, docsConfig, rollupConfig, {
- options: {
- dest: 'docs.iife.js',
- moduleName: 'docs'
- }
- }))
+ [
+ new ScssLint(gulp, docsPreset, extend(true, {}, docsConfig, {
+ source: {glob: ['**/*.scss', '!docs.scss']},
+ watch: {glob: ['**/*.scss', '!docs.scss']}
+ })),
+ new EsLint(gulp, docsPreset, docsConfig)
+ ],
+ [
+ new RollupIife(gulp, docsPreset, extend(true, {}, docsConfig, rollupConfig, {
+ options: {
+ dest: 'docs.iife.js',
+ moduleName: 'docs'
+ }
+ })),
+ new Uglify(gulp, docsPreset, extend(true, {}, docsConfig, {
+ task: {name: 'vendor:uglify'},
+ source: {options: {cwd: 'docs/assets/js/vendor'}},
+ options: {dest: 'docs-vendor.min.js'}
+ })),
+ new Sass(gulp, docsPreset, docsConfig)
+ ]
]
From 10539f84ab69977df51f67f8d6b5fad0bbdac68b Mon Sep 17 00:00:00 2001
From: Kevin Ross
Date: Tue, 1 Mar 2016 16:57:24 -0600
Subject: [PATCH 04/39] #901 banner is added to rollup
---
gulpfile.babel.js | 32 +++++++++++++++++++++++++-------
package.json | 3 ++-
2 files changed, 27 insertions(+), 8 deletions(-)
diff --git a/gulpfile.babel.js b/gulpfile.babel.js
index cde628a8..7e77479c 100644
--- a/gulpfile.babel.js
+++ b/gulpfile.babel.js
@@ -9,6 +9,8 @@ import stringify from 'stringify-object'
import gulp from 'gulp'
import findup from 'findup-sync'
const node_modules = findup('node_modules')
+import pkg from './package.json'
+import moment from 'moment'
let preset = Preset.baseline({
@@ -43,7 +45,13 @@ let rollupConfig = {
globals: {
'anchor-js': 'anchors',
clipboard: 'Clipboard'
- }
+ },
+ banner:
+`/*!
+ * Bootstrap Material Design v${pkg.version} (${pkg.homepage})
+ * Copyright 2014-${moment().format("YYYY")} ${pkg.author}
+ * Licensed under MIT (https://github.com/FezVrasta/bootstrap-material-design/blob/master/LICENSE)
+ */`
},
commonjs: {
options: {
@@ -91,6 +99,22 @@ new TaskSeries(gulp, 'js', [eslint, rollups])
new TaskSeries(gulp, 'css', [scsslint, sass])
+/**
+ * DOCS
+ */
+
+const referenceDocNotice =
+`$1\n
+[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs\n
+{% callout info %}\n**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+See the Material Design section for more elements and customization options.
+{% endcallout %}
+\n\n$2`
+
+
+
let docsPreset = Preset.baseline({
javascripts: {
source: {options: {cwd: 'docs/assets/js/src'}},
@@ -103,12 +127,6 @@ let docsPreset = Preset.baseline({
watch: {options: {cwd: 'docs/assets/scss'}},
dest: 'docs/dist'
}
- /*,
- images: {
- source: {options: {cwd: 'docs/assets/img'}},
- watch: {options: {cwd: 'docs/assets/img'}},
- dest: 'docs/dist'
- } */
})
const docsConfig = {task: {prefix: 'docs:'}}
diff --git a/package.json b/package.json
index 061c06a6..ae7161bb 100644
--- a/package.json
+++ b/package.json
@@ -43,7 +43,8 @@
"babel-preset-es2015": "^6.6.0",
"extend": "^3.0.0",
"gulp": "^3.9.1",
- "gulp-pipeline": "^0.4"
+ "gulp-pipeline": "^0.4",
+ "moment": "^2.11.2"
},
"old-grunt-devDependencies": {
"autoprefixer": "^6.3.3",
From b85944711810bf92c1af08355c2e5446fb74bb5c Mon Sep 17 00:00:00 2001
From: Kevin Ross
Date: Wed, 2 Mar 2016 14:35:46 -0600
Subject: [PATCH 05/39] working on gulp copy
---
Gruntfile.js | 36 ++++++++++++++++++------------------
gulpfile.babel.js | 37 ++++++++++++++++++++++++++-----------
2 files changed, 44 insertions(+), 29 deletions(-)
diff --git a/Gruntfile.js b/Gruntfile.js
index be011d03..6702695b 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -335,24 +335,24 @@ module.exports = function (grunt) {
],
dest: 'docs/getting-started/'
},
- 'bs-docs-content': {
- options: {
- // https://regex101.com/r/cZ7aO8/2
- process: function (content, srcpath) {
- return content
- // insert docs reference
- .replace(/(---[\s\S]+?---)([\s\S]+)/mg, referenceDocNotice)
- // remove sample text 'display' as this is a particular style and is confusing
- .replace(/Fancy display heading/, 'Fancy heading');
- }
- },
- expand: true,
- cwd: '../bootstrap/docs/content',
- src: [
- '**/*'
- ],
- dest: 'docs/content/'
- }
+ //'bs-docs-content': {
+ // options: {
+ // // https://regex101.com/r/cZ7aO8/2
+ // process: function (content, srcpath) {
+ // return content
+ // // insert docs reference
+ // .replace(/(---[\s\S]+?---)([\s\S]+)/mg, referenceDocNotice)
+ // // remove sample text 'display' as this is a particular style and is confusing
+ // .replace(/Fancy display heading/, 'Fancy heading');
+ // }
+ // },
+ // expand: true,
+ // cwd: '../bootstrap/docs/content',
+ // src: [
+ // '**/*'
+ // ],
+ // dest: 'docs/content/'
+ //}
},
connect: {
diff --git a/gulpfile.babel.js b/gulpfile.babel.js
index 7e77479c..024632d0 100644
--- a/gulpfile.babel.js
+++ b/gulpfile.babel.js
@@ -1,4 +1,4 @@
-import {Preset, Clean, MinifyCss, Sass, RollupEs, RollupUmd, RollupIife, ScssLint, EsLint, TaskSeries, Uglify} from 'gulp-pipeline/src/index'
+import {Preset, Clean, Copy, MinifyCss, Sass, RollupEs, RollupUmd, RollupIife, ScssLint, EsLint, TaskSeries, Uglify} from 'gulp-pipeline/src/index'
// debug the project source - remove for repo
//import {Clean, CleanDigest, Images, MinifyCss, Sass, RollupIife, ScssLint, EsLint, Rev, TaskSeries} from 'gulp-pipeline'
@@ -46,8 +46,7 @@ let rollupConfig = {
'anchor-js': 'anchors',
clipboard: 'Clipboard'
},
- banner:
-`/*!
+ banner: `/*!
* Bootstrap Material Design v${pkg.version} (${pkg.homepage})
* Copyright 2014-${moment().format("YYYY")} ${pkg.author}
* Licensed under MIT (https://github.com/FezVrasta/bootstrap-material-design/blob/master/LICENSE)
@@ -104,7 +103,7 @@ new TaskSeries(gulp, 'css', [scsslint, sass])
*/
const referenceDocNotice =
-`$1\n
+ `$1\n
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs\n
{% callout info %}\n**Bootstrap Reference Documentation**
This is a part of the reference documentation from Bootstrap.
@@ -114,7 +113,6 @@ See the Material Design section for more
\n\n$2`
-
let docsPreset = Preset.baseline({
javascripts: {
source: {options: {cwd: 'docs/assets/js/src'}},
@@ -133,24 +131,41 @@ const docsConfig = {task: {prefix: 'docs:'}}
let docs = [
[
- new ScssLint(gulp, docsPreset, extend(true, {}, docsConfig, {
+ new ScssLint(gulp, docsPreset, docsConfig, {
source: {glob: ['**/*.scss', '!docs.scss']},
watch: {glob: ['**/*.scss', '!docs.scss']}
- })),
+ }),
new EsLint(gulp, docsPreset, docsConfig)
],
[
- new RollupIife(gulp, docsPreset, extend(true, {}, docsConfig, rollupConfig, {
+ new RollupIife(gulp, docsPreset, docsConfig, rollupConfig, {
options: {
dest: 'docs.iife.js',
moduleName: 'docs'
}
- })),
- new Uglify(gulp, docsPreset, extend(true, {}, docsConfig, {
+ }),
+ new Uglify(gulp, docsPreset, docsConfig, {
task: {name: 'vendor:uglify'},
source: {options: {cwd: 'docs/assets/js/vendor'}},
options: {dest: 'docs-vendor.min.js'}
- })),
+ }),
new Sass(gulp, docsPreset, docsConfig)
]
]
+
+
+let bsDocs = [
+ new Copy(gulp, docsPreset, docsConfig, {
+ task: {name: 'copy:bs-docs-content'},
+ source: {
+ options: {cwd: '../bootstrap/docs/content'},
+ glob: ['**/*']
+ },
+ dest: 'docs/content/',
+ process: (content, srcpath) => { // https://regex101.com/r/cZ7aO8/2
+ return content
+ .replace(/(---[\s\S]+?---)([\s\S]+)/mg, referenceDocNotice) // insert docs reference
+ .replace(/Fancy display heading/, 'Fancy heading') // remove sample text 'display' as this is a particular MD style and is confusing
+ }
+ })
+]
From 21f2e4573198e851ef540d043bbf22bc3eafb348 Mon Sep 17 00:00:00 2001
From: Kevin Ross
Date: Wed, 9 Mar 2016 10:10:59 -0600
Subject: [PATCH 06/39] docs copy integrated
---
docs/content/code.md | 7 ++++---
docs/content/figures.md | 7 ++++---
docs/content/images.md | 7 ++++---
docs/content/reboot.md | 7 ++++---
docs/content/tables.md | 7 ++++---
docs/content/typography.md | 7 ++++---
6 files changed, 24 insertions(+), 18 deletions(-)
diff --git a/docs/content/code.md b/docs/content/code.md
index 0abd861b..3ddac168 100644
--- a/docs/content/code.md
+++ b/docs/content/code.md
@@ -7,14 +7,15 @@ group: content
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
{% callout info %}
-**Bootstrap Reference Documentation**
-This is a part of the reference documentation from Bootstrap.
-It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
See the Material Design section for more elements and customization options.
{% endcallout %}
+
Styles for inline code snippets and longer, multiline blocks of code.
## Contents
diff --git a/docs/content/figures.md b/docs/content/figures.md
index 9611ca8b..0357d38c 100644
--- a/docs/content/figures.md
+++ b/docs/content/figures.md
@@ -7,14 +7,15 @@ group: content
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
{% callout info %}
-**Bootstrap Reference Documentation**
-This is a part of the reference documentation from Bootstrap.
-It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
See the Material Design section for more elements and customization options.
{% endcallout %}
+
Anytime you need to display a piece of content—like an image—with an optional caption, consider using a `
`.
Use the included `.figure` , `.figure-img` and `.figure-caption` classes to provide some baseline styles for the HTML5 `
` and `` elements. Images in figures have no explicit size, so be sure to add the `.img-fluid` class to your `` to make it responsive.
diff --git a/docs/content/images.md b/docs/content/images.md
index 41d00157..6d481d13 100644
--- a/docs/content/images.md
+++ b/docs/content/images.md
@@ -7,14 +7,15 @@ group: content
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
{% callout info %}
-**Bootstrap Reference Documentation**
-This is a part of the reference documentation from Bootstrap.
-It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
See the Material Design section for more elements and customization options.
{% endcallout %}
+
Opt your images into responsive behavior (so they never become larger than their parent elements) and add lightweight styles to them—all via classes.
## Contents
diff --git a/docs/content/reboot.md b/docs/content/reboot.md
index ec65590a..81cf2c64 100644
--- a/docs/content/reboot.md
+++ b/docs/content/reboot.md
@@ -8,14 +8,15 @@ redirect_from: "/content/"
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
{% callout info %}
-**Bootstrap Reference Documentation**
-This is a part of the reference documentation from Bootstrap.
-It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
See the Material Design section for more elements and customization options.
{% endcallout %}
+
Part of Bootstrap's job is to provide an elegant, consistent, and simple baseline to build upon. We use Reboot, a collection of element-specific CSS changes in a single file, to kickstart that.
Reboot builds upon Normalize, providing many HTML elements with somewhat opinionated styles using only element selectors. Additional styling is done only with classes. For example, we reboot some `
` styles for a simpler baseline and later provide `.table`, `.table-bordered`, and more.
diff --git a/docs/content/tables.md b/docs/content/tables.md
index 6d0db4e7..817de4d5 100644
--- a/docs/content/tables.md
+++ b/docs/content/tables.md
@@ -7,14 +7,15 @@ group: content
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
{% callout info %}
-**Bootstrap Reference Documentation**
-This is a part of the reference documentation from Bootstrap.
-It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
See the Material Design section for more elements and customization options.
{% endcallout %}
+
Due to the widespread use of tables across third-party widgets like calendars and date pickers, we've designed our tables to be **opt-in**. Just add the base class `.table` to any `
`.
## Contents
diff --git a/docs/content/typography.md b/docs/content/typography.md
index e299b1a3..d2edfdc6 100644
--- a/docs/content/typography.md
+++ b/docs/content/typography.md
@@ -7,14 +7,15 @@ group: content
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
{% callout info %}
-**Bootstrap Reference Documentation**
-This is a part of the reference documentation from Bootstrap.
-It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
See the Material Design section for more elements and customization options.
{% endcallout %}
+
Bootstrap includes simple and easily customized typography for headings, body text, lists, and more. For even more control, check out the [textual utility classes]({{ site.baseurl }}/components/utilities/).
## Contents
From 68f61c8eb146c9e3e886bf91e3fd27b5d4b192d4 Mon Sep 17 00:00:00 2001
From: Kevin Ross
Date: Wed, 9 Mar 2016 10:23:01 -0600
Subject: [PATCH 07/39] bsDocs components
---
Gruntfile.js | 66 +++++++++++++++---------------
docs/components/alerts.md | 7 ++--
docs/components/breadcrumb.md | 7 ++--
docs/components/button-dropdown.md | 7 ++--
docs/components/button-group.md | 7 ++--
docs/components/buttons.md | 7 ++--
docs/components/card.md | 7 ++--
docs/components/carousel.md | 7 ++--
docs/components/collapse.md | 7 ++--
docs/components/dropdowns.md | 7 ++--
docs/components/forms.md | 7 ++--
docs/components/input-group.md | 7 ++--
docs/components/jumbotron.md | 7 ++--
docs/components/list-group.md | 7 ++--
docs/components/modal.md | 7 ++--
docs/components/navbar.md | 7 ++--
docs/components/navs.md | 7 ++--
docs/components/pagination.md | 7 ++--
docs/components/popovers.md | 7 ++--
docs/components/progress.md | 7 ++--
docs/components/scrollspy.md | 7 ++--
docs/components/tag.md | 7 ++--
docs/components/tooltips.md | 7 ++--
docs/components/utilities.md | 7 ++--
gulpfile.babel.js | 36 +++++++++++++---
25 files changed, 155 insertions(+), 108 deletions(-)
diff --git a/Gruntfile.js b/Gruntfile.js
index 6702695b..26dba52a 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -303,38 +303,38 @@ module.exports = function (grunt) {
],
dest: 'docs/assets/scss/'
},
- 'bs-docs-components': {
- 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/components',
- src: [
- '**/*'
- ],
- dest: 'docs/components/'
- },
- 'bs-docs-getting-started': {
- options: {
- // https://regex101.com/r/cZ7aO8/2
- process: function (content, srcpath) {
- return content
- // insert docs reference
- .replace(/(---[\s\S]+?---)([\s\S]+)/mg, referenceDocNotice)
- // remove sample text 'display' as this is a particular style and is confusing
- .replace(/Fancy display heading/, 'Fancy heading');
- }
- },
- expand: true,
- cwd: '../bootstrap/docs/getting-started',
- src: [
- 'browsers-devices.md' // only one file
- ],
- dest: 'docs/getting-started/'
- },
+ //'bs-docs-components': {
+ // 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/components',
+ // src: [
+ // '**/*'
+ // ],
+ // dest: 'docs/components/'
+ //},
+ //'bs-docs-getting-started': {
+ // options: {
+ // // https://regex101.com/r/cZ7aO8/2
+ // process: function (content, srcpath) {
+ // return content
+ // // insert docs reference
+ // .replace(/(---[\s\S]+?---)([\s\S]+)/mg, referenceDocNotice)
+ // // remove sample text 'display' as this is a particular style and is confusing
+ // .replace(/Fancy display heading/, 'Fancy heading');
+ // }
+ // },
+ // expand: true,
+ // cwd: '../bootstrap/docs/getting-started',
+ // src: [
+ // 'browsers-devices.md' // only one file
+ // ],
+ // dest: 'docs/getting-started/'
+ //},
//'bs-docs-content': {
// options: {
// // https://regex101.com/r/cZ7aO8/2
@@ -592,7 +592,7 @@ module.exports = function (grunt) {
grunt.registerTask('docs-copy-bootstrap-docs', [
'copy:bs-docs-js-vendor',
'copy:bs-docs-scss',
- 'copy:bs-docs-getting-started',
+ //'copy:bs-docs-getting-started',
'copy:bs-docs-components',
'copy:bs-docs-content',
'copy:bs-docs-plugins'
diff --git a/docs/components/alerts.md b/docs/components/alerts.md
index 559b93ae..723cf9f5 100644
--- a/docs/components/alerts.md
+++ b/docs/components/alerts.md
@@ -7,14 +7,15 @@ group: components
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
{% callout info %}
-**Bootstrap Reference Documentation**
-This is a part of the reference documentation from Bootstrap.
-It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
See the Material Design section for more elements and customization options.
{% endcallout %}
+
Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.
## Contents
diff --git a/docs/components/breadcrumb.md b/docs/components/breadcrumb.md
index b3759c0d..b82a571e 100644
--- a/docs/components/breadcrumb.md
+++ b/docs/components/breadcrumb.md
@@ -7,14 +7,15 @@ group: components
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
{% callout info %}
-**Bootstrap Reference Documentation**
-This is a part of the reference documentation from Bootstrap.
-It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
See the Material Design section for more elements and customization options.
{% endcallout %}
+
Indicate the current page's location within a navigational hierarchy. Separators are automatically added in CSS through [`::before`](https://developer.mozilla.org/en-US/docs/Web/CSS/::before) and [`content`](https://developer.mozilla.org/en-US/docs/Web/CSS/content).
{% example html %}
diff --git a/docs/components/button-dropdown.md b/docs/components/button-dropdown.md
index 1139d260..8f96a72d 100644
--- a/docs/components/button-dropdown.md
+++ b/docs/components/button-dropdown.md
@@ -7,14 +7,15 @@ group: components
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
{% callout info %}
-**Bootstrap Reference Documentation**
-This is a part of the reference documentation from Bootstrap.
-It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
See the Material Design section for more elements and customization options.
{% endcallout %}
+
Use any button to trigger a dropdown menu by placing it within a `.btn-group` and providing the proper dropdown menu markup.
{% callout danger %}
diff --git a/docs/components/button-group.md b/docs/components/button-group.md
index 42991787..8955d760 100644
--- a/docs/components/button-group.md
+++ b/docs/components/button-group.md
@@ -7,14 +7,15 @@ group: components
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
{% callout info %}
-**Bootstrap Reference Documentation**
-This is a part of the reference documentation from Bootstrap.
-It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
See the Material Design section for more elements and customization options.
{% endcallout %}
+
Group a series of buttons together on a single line with the button group. Add on optional JavaScript radio and checkbox style behavior with [our buttons plugin]({{ site.baseurl }}/components/buttons/#button-plugin).
## Contents
diff --git a/docs/components/buttons.md b/docs/components/buttons.md
index 37dfd54a..a728886a 100644
--- a/docs/components/buttons.md
+++ b/docs/components/buttons.md
@@ -8,14 +8,15 @@ redirect_from: "/components/"
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
{% callout info %}
-**Bootstrap Reference Documentation**
-This is a part of the reference documentation from Bootstrap.
-It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
See the Material Design section for more elements and customization options.
{% endcallout %}
+
Use Bootstrap's custom button styles for actions in forms, dialogs, and more. Includes support for a handful of contextual variations, sizes, states, and more.
## Contents
diff --git a/docs/components/card.md b/docs/components/card.md
index 0a316516..66d19e65 100644
--- a/docs/components/card.md
+++ b/docs/components/card.md
@@ -7,14 +7,15 @@ group: components
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
{% callout info %}
-**Bootstrap Reference Documentation**
-This is a part of the reference documentation from Bootstrap.
-It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
See the Material Design section for more elements and customization options.
{% endcallout %}
+
A **card** is a flexible and extensible content container. It includes options for headers and footers, a wide variety of content, contextual background colors, and powerful display options.
If you're familiar with Bootstrap 3, cards replace our old panels, wells, and thumbnails. Similar functionality to those components is available as modifier classes for cards.
diff --git a/docs/components/carousel.md b/docs/components/carousel.md
index ceeb4461..51af0fe5 100644
--- a/docs/components/carousel.md
+++ b/docs/components/carousel.md
@@ -7,14 +7,15 @@ group: components
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
{% callout info %}
-**Bootstrap Reference Documentation**
-This is a part of the reference documentation from Bootstrap.
-It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
See the Material Design section for more elements and customization options.
{% endcallout %}
+
A slideshow component for cycling through elements—images or slides of text—like a carousel. In browsers where the [Page Visibility API](http://www.w3.org/TR/page-visibility/) is supported, the carousel will avoid sliding when the webpage is not visible to the user (such as when the browser tab is inactive, the browser window is minimized, etc.). **Nested carousels are not supported.**
## Contents
diff --git a/docs/components/collapse.md b/docs/components/collapse.md
index 72117570..d094cf58 100644
--- a/docs/components/collapse.md
+++ b/docs/components/collapse.md
@@ -7,14 +7,15 @@ group: components
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
{% callout info %}
-**Bootstrap Reference Documentation**
-This is a part of the reference documentation from Bootstrap.
-It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
See the Material Design section for more elements and customization options.
{% endcallout %}
+
The Bootstrap collapse plugin allows you to toggle content on your pages with a bit of JavaScript and some classes. Flexible plugin that utilizes a handful of classes (from the **required [transitions plugin]({{ site.baseurl }}/components/transitions/)**) for easy toggle behavior.
## Contents
diff --git a/docs/components/dropdowns.md b/docs/components/dropdowns.md
index 78134dc6..25880afe 100644
--- a/docs/components/dropdowns.md
+++ b/docs/components/dropdowns.md
@@ -7,14 +7,15 @@ group: components
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
{% callout info %}
-**Bootstrap Reference Documentation**
-This is a part of the reference documentation from Bootstrap.
-It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
See the Material Design section for more elements and customization options.
{% endcallout %}
+
Dropdowns are toggleable, contextual overlays for displaying lists of links and more. They're made interactive with the included Bootstrap dropdown JavaScript plugin. They're toggled by clicking, not by hovering; this is [an intentional design decision.](http://markdotto.com/2012/02/27/bootstrap-explained-dropdowns/)
## Contents
diff --git a/docs/components/forms.md b/docs/components/forms.md
index ba612461..430c15e9 100644
--- a/docs/components/forms.md
+++ b/docs/components/forms.md
@@ -7,14 +7,15 @@ group: components
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
{% callout info %}
-**Bootstrap Reference Documentation**
-This is a part of the reference documentation from Bootstrap.
-It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
See the Material Design section for more elements and customization options.
{% endcallout %}
+
Bootstrap provides several form control styles, layout options, and custom components for creating a wide variety of forms.
## Contents
diff --git a/docs/components/input-group.md b/docs/components/input-group.md
index 98764050..58788294 100644
--- a/docs/components/input-group.md
+++ b/docs/components/input-group.md
@@ -7,14 +7,15 @@ group: components
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
{% callout info %}
-**Bootstrap Reference Documentation**
-This is a part of the reference documentation from Bootstrap.
-It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
See the Material Design section for more elements and customization options.
{% endcallout %}
+
Easily extend form controls by adding text, buttons, or button groups on either side of textual ``s.
## Contents
diff --git a/docs/components/jumbotron.md b/docs/components/jumbotron.md
index f1f1d34a..b6649ad4 100644
--- a/docs/components/jumbotron.md
+++ b/docs/components/jumbotron.md
@@ -7,14 +7,15 @@ group: components
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
{% callout info %}
-**Bootstrap Reference Documentation**
-This is a part of the reference documentation from Bootstrap.
-It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
See the Material Design section for more elements and customization options.
{% endcallout %}
+
A lightweight, flexible component that can optionally extend the entire viewport to showcase key marketing messages on your site.
## Example
diff --git a/docs/components/list-group.md b/docs/components/list-group.md
index c627c707..1e74905d 100644
--- a/docs/components/list-group.md
+++ b/docs/components/list-group.md
@@ -7,14 +7,15 @@ group: components
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
{% callout info %}
-**Bootstrap Reference Documentation**
-This is a part of the reference documentation from Bootstrap.
-It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
See the Material Design section for more elements and customization options.
{% endcallout %}
+
List groups are a flexible and powerful component for displaying not only simple lists of elements, but complex ones with custom content.
## Contents
diff --git a/docs/components/modal.md b/docs/components/modal.md
index e5bf5c5c..2c43c5b1 100644
--- a/docs/components/modal.md
+++ b/docs/components/modal.md
@@ -7,14 +7,15 @@ group: components
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
{% callout info %}
-**Bootstrap Reference Documentation**
-This is a part of the reference documentation from Bootstrap.
-It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
See the Material Design section for more elements and customization options.
{% endcallout %}
+
Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults.
## Contents
diff --git a/docs/components/navbar.md b/docs/components/navbar.md
index 60debe4b..bca78508 100644
--- a/docs/components/navbar.md
+++ b/docs/components/navbar.md
@@ -7,14 +7,15 @@ group: components
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
{% callout info %}
-**Bootstrap Reference Documentation**
-This is a part of the reference documentation from Bootstrap.
-It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
See the Material Design section for more elements and customization options.
{% endcallout %}
+
The navbar is a simple wrapper for positioning branding, navigation, and other elements into a concise navigation header. It's easily extensible and, with the help of our collapse plugin, it can easily integrate offscreen content.
## Contents
diff --git a/docs/components/navs.md b/docs/components/navs.md
index 2ffd55af..85730d46 100644
--- a/docs/components/navs.md
+++ b/docs/components/navs.md
@@ -7,14 +7,15 @@ group: components
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
{% callout info %}
-**Bootstrap Reference Documentation**
-This is a part of the reference documentation from Bootstrap.
-It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
See the Material Design section for more elements and customization options.
{% endcallout %}
+
Navigation available in Bootstrap share general markup and styles, from the base `.nav` class to the active and disabled states. Swap modifier classes to switch between each style.
## Contents
diff --git a/docs/components/pagination.md b/docs/components/pagination.md
index e94751bb..6e9f86b1 100644
--- a/docs/components/pagination.md
+++ b/docs/components/pagination.md
@@ -7,14 +7,15 @@ group: components
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
{% callout info %}
-**Bootstrap Reference Documentation**
-This is a part of the reference documentation from Bootstrap.
-It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
See the Material Design section for more elements and customization options.
{% endcallout %}
+
Provide pagination links for your site or app with the multi-page pagination component.
## Contents
diff --git a/docs/components/popovers.md b/docs/components/popovers.md
index e0259cbe..c996f97e 100644
--- a/docs/components/popovers.md
+++ b/docs/components/popovers.md
@@ -7,14 +7,15 @@ group: components
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
{% callout info %}
-**Bootstrap Reference Documentation**
-This is a part of the reference documentation from Bootstrap.
-It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
See the Material Design section for more elements and customization options.
{% endcallout %}
+
Add small overlay content, like those found in iOS, to any element for housing secondary information.
## Contents
diff --git a/docs/components/progress.md b/docs/components/progress.md
index 8056f473..0b7dc1a5 100644
--- a/docs/components/progress.md
+++ b/docs/components/progress.md
@@ -7,14 +7,15 @@ group: components
[//]: # DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
{% callout info %}
-**Bootstrap Reference Documentation**
-This is a part of the reference documentation from Bootstrap.
-It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
+**Bootstrap Reference Documentation**
+This is a part of the reference documentation from Bootstrap.
+It is included here to demonstrate rendering with Material Design for Bootstrap default styling.
See the Material Design section for more elements and customization options.
{% endcallout %}
+
Stylize [the HTML5 `
Hello, world!
-
+
diff --git a/docs/getting-started/release-process.md b/docs/getting-started/release-process.md
index aafd3f5b..f2340165 100644
--- a/docs/getting-started/release-process.md
+++ b/docs/getting-started/release-process.md
@@ -4,7 +4,7 @@ title: Release process
group: getting-started
---
-Material Design for Bootstrap has a well defined release process that is automated by [Grunt](http://gruntjs.com). See the [Build Tools](../build-tools) section for setup.
+Material Design for Bootstrap has a well defined release process that is automated by [Gulp](http://gulpjs.com). See the [Build Tools](../build-tools) section for setup.
## Creating a release
@@ -13,36 +13,14 @@ Material Design for Bootstrap has a well defined release process that is automat
Use the following task template:
~~~~~~~~
- - [] update `package.json` version
- - [] `grunt prep-release`
- - [] commit
- - [] travis success
- - [] tag for bower e.g. `v4.0.0`
- - [] push to npm
- - [] push to meteor
- - [] `grunt publish`
+ - [] run `gulp publish` it will bump the version, build core, docs, gh-pages, publish them all (with a tag) and push to npm
+ - [] `meteor publish`
- [] close any milestone
- - [] create release and reference milestone issues
+ - [] create release from tag and reference milestone issues
~~~~~~~~
-
-### Build the release
-1. Update the version in `package.json`, it's version is used in the documentation
-1. Build the distribution `grunt prep-release`
-1. Commit
-1. Ensure travis succeeds
-
-### Bower
-Tag for bower - a valid tag starts with a `v` such as `v4.0.0`
-
-### NPM
-`npm publish`
-
-### Meteor
-TODO: push to meteor?
### Github tasks
-1. Push documentation with `grunt publish`
1. Close any related open milestone
1. Create a release and reference the milestone