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)
```bash
jekyll serve --baseurl ""
jekyll serve
```
## Releasing
1. Make sure travis succeeds first
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. 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: {},
github: {
options: {
raw: 'github: true'
//raw: 'github: true'
raw: 'baseurl: "/bootstrap-material-design"'
}
}
},
@ -549,6 +550,13 @@ module.exports = function (grunt) {
npmUpdate: {
command: 'npm update'
}
//,
//'jekyll-clean': {
// command: 'jekyll clean'
//},
//'jekyll-build': {
// command: 'jekyll build'
//}
},
buildcontrol: {
@ -691,7 +699,7 @@ module.exports = function (grunt) {
grunt.registerTask('prep-release', ['dist', 'docs', 'docs-github', 'compress']);
// 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).
// 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
#url: "http://fezvrasta.github.io"
repo: https://github.com/fezvrasta/bootstrap-material-design
baseurl: "/bootstrap-material-design"
#baseurl: "/bootstrap-material-design"
url: "http://rosskevin.github.io"
# other variables generated in

View File

@ -23,24 +23,24 @@ class Application {
$('.bd-example-indeterminate [type="checkbox"]').prop('indeterminate', true)
// Disable empty links in docs examples
$('.bd-example [href=#]').click(function (e) {
$('.bd-example [href=#]').click((e) => {
e.preventDefault()
})
// Insert copy to clipboard button before .highlight
$('.highlight').each(function () {
var btnHtml = '<div class="bd-clipboard"><span class="btn-clipboard" title="Copy to clipboard">Copy</span></div>'
$('.highlight').each(() => {
let btnHtml = '<div class="bd-clipboard"><span class="btn-clipboard" title="Copy to clipboard">Copy</span></div>'
$(this).before(btnHtml)
$('.btn-clipboard').tooltip()
})
var clipboard = new Clipboard('.btn-clipboard', {
target: function (trigger) {
let clipboard = new Clipboard('.btn-clipboard', {
target: (trigger) => {
return trigger.parentNode.nextElementSibling
}
})
clipboard.on('success', function (e) {
clipboard.on('success', (e) => {
$(e.trigger)
.attr('title', 'Copied!')
.tooltip('_fixTitle')
@ -51,8 +51,8 @@ class Application {
e.clearSelection()
})
clipboard.on('error', function (e) {
var fallbackMsg = /Mac/i.test(navigator.userAgent) ? 'Press \u2318 to copy' : 'Press Ctrl-C to copy'
clipboard.on('error', (e) => {
let fallbackMsg = /Mac/i.test(navigator.userAgent) ? 'Press \u2318 to copy' : 'Press Ctrl-C to copy'
$(e.trigger)
.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-light: rgba($white, 0.54) !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
//---
@ -38,6 +37,7 @@ $enable-flex: true;
@import "../bower_components/bootstrap/scss/variables";
$mdb-label-color-focus: $brand-primary !default;
//---
// verified in use with refactoring to v4