mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Add Sass processing of docs css files
This was removed in bcc3dd84d0
but is
still needed.
This commit is contained in:
parent
40b222694e
commit
ace2e4f531
2 changed files with 12 additions and 1 deletions
1
Gemfile
1
Gemfile
|
@ -4,6 +4,7 @@ gemspec
|
|||
group :docs do
|
||||
gem "yard", "~> 0.8.0"
|
||||
gem "kramdown"
|
||||
gem "sass"
|
||||
end
|
||||
|
||||
platform :mri do
|
||||
|
|
12
Rakefile
12
Rakefile
|
@ -54,6 +54,16 @@ begin
|
|||
end
|
||||
|
||||
namespace :doc do
|
||||
|
||||
task :sass do
|
||||
require 'sass'
|
||||
Dir["yard/default/**/*.sass"].each do |sass|
|
||||
File.open(sass.gsub(/sass$/, 'css'), 'w') do |f|
|
||||
f.write(Sass::Engine.new(File.read(sass)).render)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
desc "List all undocumented methods and classes."
|
||||
task :undocumented do
|
||||
command = 'yard --list --query '
|
||||
|
@ -64,7 +74,7 @@ begin
|
|||
end
|
||||
|
||||
desc "Generate documentation"
|
||||
task(:doc) {sh "yard"}
|
||||
task(:doc => 'doc:sass') {sh "yard"}
|
||||
|
||||
desc "Generate documentation incrementally"
|
||||
task(:redoc) {sh "yard -c"}
|
||||
|
|
Loading…
Add table
Reference in a new issue