mirror of
https://github.com/medialab-prado/datamad2017.git
synced 2025-06-07 14:01:29 +02:00
Updated to v.0.5 https://github.com/gdg-x/zeppelin/releases/tag/v0.5
This commit is contained in:
parent
8f50469039
commit
4ae5844b2a
29 changed files with 171 additions and 181 deletions
29
_plugins/generator_scss.rb
Normal file
29
_plugins/generator_scss.rb
Normal file
|
@ -0,0 +1,29 @@
|
|||
#
|
||||
# Jekyll Generator for SCSS
|
||||
#
|
||||
# (File paths in this description relative to jekyll project root directory)
|
||||
# Place this file in ./_plugins
|
||||
# Place .scss files in ./_scss
|
||||
# Compiles .scss files in ./_scss to .css files in whatever directory you indicated in your config
|
||||
# Config file placed in ./_sass/config.rb
|
||||
#
|
||||
|
||||
require 'sass'
|
||||
require 'pathname'
|
||||
require 'compass'
|
||||
require 'compass/exec'
|
||||
|
||||
module Jekyll
|
||||
|
||||
class CompassGenerator < Generator
|
||||
safe true
|
||||
|
||||
def generate(site)
|
||||
Dir.chdir File.expand_path('../_sass', File.dirname(__FILE__)) do
|
||||
Compass::Exec::SubCommandUI.new(%w(compile)).run!
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue