Updating publish workflow

This commit is contained in:
Kevin Ross 2015-12-23 16:45:54 -06:00
parent 3c61ed426d
commit 9d1eb6e2da
5 changed files with 23 additions and 15 deletions

View File

@ -243,14 +243,14 @@ This performs an initial build and watches both the core and docs sources for ch
(assuming the above is done) (assuming the above is done)
```bash ```bash
jekyll serve --baseurl "" jekyll serve
``` ```
## Releasing ## Releasing
1. Make sure travis succeeds first 1. Make sure travis succeeds first
1. Update the version in `package.json`, it's version is used in the documentation 1. Update the version in `package.json`, it's version is used in the documentation
1. Build the distribution `grunt dist docs` 1. Build the distribution `grunt prep-release`
1. Commit 1. Commit
1. Tag for bower - a valid tag starts with a `v` such as `v4.0.0` 1. Tag for bower - a valid tag starts with a `v` such as `v4.0.0`
1. Push documentation with `jekyll clean && jekyll build && grunt publish` 1. Push documentation with `grunt publish`

View File

@ -480,7 +480,8 @@ module.exports = function (grunt) {
docs: {}, docs: {},
github: { github: {
options: { options: {
raw: 'github: true' //raw: 'github: true'
raw: 'baseurl: "/bootstrap-material-design"'
} }
} }
}, },
@ -549,6 +550,13 @@ module.exports = function (grunt) {
npmUpdate: { npmUpdate: {
command: 'npm update' command: 'npm update'
} }
//,
//'jekyll-clean': {
// command: 'jekyll clean'
//},
//'jekyll-build': {
// command: 'jekyll build'
//}
}, },
buildcontrol: { buildcontrol: {
@ -691,7 +699,7 @@ module.exports = function (grunt) {
grunt.registerTask('prep-release', ['dist', 'docs', 'docs-github', 'compress']); grunt.registerTask('prep-release', ['dist', 'docs', 'docs-github', 'compress']);
// Publish to GitHub // Publish to GitHub
grunt.registerTask('publish', ['buildcontrol:pages']); grunt.registerTask('publish', ['prep-release', 'buildcontrol:pages']);
// 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.

View File

@ -35,7 +35,7 @@ gems:
# Site vars # Site vars
#url: "http://fezvrasta.github.io" #url: "http://fezvrasta.github.io"
repo: https://github.com/fezvrasta/bootstrap-material-design repo: https://github.com/fezvrasta/bootstrap-material-design
baseurl: "/bootstrap-material-design" #baseurl: "/bootstrap-material-design"
url: "http://rosskevin.github.io" url: "http://rosskevin.github.io"
# other variables generated in # other variables generated in

View File

@ -23,24 +23,24 @@ class Application {
$('.bd-example-indeterminate [type="checkbox"]').prop('indeterminate', true) $('.bd-example-indeterminate [type="checkbox"]').prop('indeterminate', true)
// Disable empty links in docs examples // Disable empty links in docs examples
$('.bd-example [href=#]').click(function (e) { $('.bd-example [href=#]').click((e) => {
e.preventDefault() e.preventDefault()
}) })
// Insert copy to clipboard button before .highlight // Insert copy to clipboard button before .highlight
$('.highlight').each(function () { $('.highlight').each(() => {
var btnHtml = '<div class="bd-clipboard"><span class="btn-clipboard" title="Copy to clipboard">Copy</span></div>' let btnHtml = '<div class="bd-clipboard"><span class="btn-clipboard" title="Copy to clipboard">Copy</span></div>'
$(this).before(btnHtml) $(this).before(btnHtml)
$('.btn-clipboard').tooltip() $('.btn-clipboard').tooltip()
}) })
var clipboard = new Clipboard('.btn-clipboard', { let clipboard = new Clipboard('.btn-clipboard', {
target: function (trigger) { target: (trigger) => {
return trigger.parentNode.nextElementSibling return trigger.parentNode.nextElementSibling
} }
}) })
clipboard.on('success', function (e) { clipboard.on('success', (e) => {
$(e.trigger) $(e.trigger)
.attr('title', 'Copied!') .attr('title', 'Copied!')
.tooltip('_fixTitle') .tooltip('_fixTitle')
@ -51,8 +51,8 @@ class Application {
e.clearSelection() e.clearSelection()
}) })
clipboard.on('error', function (e) { clipboard.on('error', (e) => {
var fallbackMsg = /Mac/i.test(navigator.userAgent) ? 'Press \u2318 to copy' : 'Press Ctrl-C to copy' let fallbackMsg = /Mac/i.test(navigator.userAgent) ? 'Press \u2318 to copy' : 'Press Ctrl-C to copy'
$(e.trigger) $(e.trigger)
.attr('title', fallbackMsg) .attr('title', fallbackMsg)

View File

@ -12,7 +12,6 @@ $mdb-font-weight-base: 400;
$mdb-text-color-inverse: rgba($white, 0.84) !default; $mdb-text-color-inverse: rgba($white, 0.84) !default;
$mdb-text-color-inverse-light: rgba($white, 0.54) !default; $mdb-text-color-inverse-light: rgba($white, 0.54) !default;
$mdb-label-color: $gray-light !default; $mdb-label-color: $gray-light !default;
$mdb-label-color-focus: $brand-primary !default;
$mdb-label-color-inner-focus: $gray !default; // e.g. radio label or text-muted not a control-label which is primary $mdb-label-color-inner-focus: $gray !default; // e.g. radio label or text-muted not a control-label which is primary
//--- //---
@ -38,6 +37,7 @@ $enable-flex: true;
@import "../bower_components/bootstrap/scss/variables"; @import "../bower_components/bootstrap/scss/variables";
$mdb-label-color-focus: $brand-primary !default;
//--- //---
// verified in use with refactoring to v4 // verified in use with refactoring to v4