Skip to content

Commit

Permalink
fix(doc): absolute paths
Browse files Browse the repository at this point in the history
remove '/' behind resources paths
added grunt default task to build boosted
  • Loading branch information
ygatesoupe committed Dec 17, 2015
1 parent ec7ef53 commit d2b509d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
26 changes: 25 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,19 @@ module.exports = function (grunt) {
}
},

/* boosted mod */
replace: {
remplace: {
src: ['_gh_pages/**/*.html'],
overwrite: true,
replacements: [{
from: 'href="/',
to: 'href="'
}]
}
},
/* end mod */

htmllint: {
options: {
ignore: [
Expand Down Expand Up @@ -552,7 +565,9 @@ module.exports = function (grunt) {
grunt.registerTask('dist', ['clean:dist', 'dist-css', 'dist-js', 'copy:fonts', 'copy:img']);

// Default task.
grunt.registerTask('default', ['clean:dist', 'test']);
/* boosted mod */
// grunt.registerTask('default', ['clean:dist', 'test']);
/* end mod */

// Version numbering task.
// grunt change-version-number --oldver=A.B.C --newver=X.Y.Z
Expand Down Expand Up @@ -608,5 +623,14 @@ module.exports = function (grunt) {
'watch'
]);
});

grunt.registerTask('default', 'Build boosted', function (target) {
grunt.task.run([
'dist',
'docs',
'jekyll:docs',
'replace'
]);
});
/* end mod */
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
"mq4-hover-shim": "^0.3.0",
"npm-shrinkwrap": "^200.1.0",
"time-grunt": "^1.2.1",
"serve-static": "^1.10.0"
"serve-static": "^1.10.0",
"grunt-text-replace": "^0.4.0"
},
"engines": {
"node": ">=0.10.1"
Expand Down

0 comments on commit d2b509d

Please sign in to comment.