Update the custom YARD CSS to use the proper YARD methodology.

This commit is contained in:
Nathan Weizenbaum
2009-11-23 14:01:16 -08:00
parent cb04561385
commit 6d887f78ae
4 changed files with 14 additions and 20 deletions

1
yard/default/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
*.css

View File

@@ -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