mirror of
https://github.com/primer/css.git
synced 2024-11-26 23:56:04 +03:00
getting jekyll version from package file instead of config.yml
This commit is contained in:
parent
bf87ecda15
commit
f9691a0695
13
Gruntfile.js
13
Gruntfile.js
@ -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']);
|
||||
};
|
||||
|
@ -8,8 +8,6 @@ permalink: pretty
|
||||
source: docs
|
||||
baseurl: ""
|
||||
|
||||
version: 3.0.0
|
||||
|
||||
sass:
|
||||
sass_dir: ../
|
||||
style: compressed
|
||||
|
Loading…
Reference in New Issue
Block a user