mirror of
https://github.com/zhigang1992/sass.git
synced 2026-04-30 10:12:24 +08:00
Update the custom YARD CSS to use the proper YARD methodology.
This commit is contained in:
1
yard/default/.gitignore
vendored
Normal file
1
yard/default/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.css
|
||||
@@ -1,20 +0,0 @@
|
||||
require File.dirname(__FILE__) + "/../lib/sass"
|
||||
|
||||
class YARD::Generators::FullDocGenerator
|
||||
protected
|
||||
|
||||
def generate_assets_with_haml
|
||||
generate_assets_without_haml
|
||||
|
||||
if format == :html && serializer
|
||||
template_file = find_template template_path(css_file)
|
||||
haml_style = Sass::Engine.new(File.read(
|
||||
File.dirname(__FILE__) + "/haml-style.sass")).render
|
||||
serializer.serialize(css_file, File.read(template_file) + haml_style)
|
||||
end
|
||||
|
||||
true
|
||||
end
|
||||
alias_method :generate_assets_without_haml, :generate_assets
|
||||
alias_method :generate_assets, :generate_assets_with_haml
|
||||
end
|
||||
Reference in New Issue
Block a user