1
1
mirror of https://github.com/primer/css.git synced 2024-11-23 11:27:26 +03:00

getting jekyll version from package file instead of config.yml

This commit is contained in:
Jon Rohan 2016-03-31 08:32:06 -04:00
parent bf87ecda15
commit f9691a0695
2 changed files with 10 additions and 5 deletions

View File

@ -74,7 +74,14 @@ module.exports = function(grunt) {
options: {
src: 'docs',
dest: '_site',
config: '_config.yml'
config: '_config.yml',
raw: "version: <%= pkg.version %>"
},
dist: {
serve: false
},
serve: {
serve: true
}
},
@ -103,8 +110,8 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-sass');
// Generate and format the CSS
grunt.registerTask('default', ['sass', 'jekyll', 'postcss', 'parker']);
grunt.registerTask('default', ['sass', 'jekyll:dist', 'postcss', 'parker']);
// Publish to GitHub
grunt.registerTask('publish', ['jekyll', 'postcss:docs', 'buildcontrol:pages']);
grunt.registerTask('publish', ['jekyll:dist', 'postcss:docs', 'buildcontrol:pages']);
};

View File

@ -8,8 +8,6 @@ permalink: pretty
source: docs
baseurl: ""
version: 3.0.0
sass:
sass_dir: ../
style: compressed