Skip to content

Commit

Permalink
Update the custom YARD CSS to use the proper YARD methodology.
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Nov 23, 2009
1 parent cb04561 commit 6d887f7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 20 deletions.
13 changes: 13 additions & 0 deletions Rakefile
Expand Up @@ -225,6 +225,17 @@ end
begin
require 'yard'

namespace :yard do
task :sass do
require File.dirname(__FILE__) + '/lib/sass'
Dir[File.dirname(__FILE__) + "/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
end

YARD::Rake::YardocTask.new do |t|
t.files = FileList.new('lib/**/*.rb') do |list|
list.exclude('lib/haml/template/*.rb')
Expand All @@ -234,7 +245,9 @@ begin
t.options += FileList.new('yard/*.rb').to_a.map {|f| ['-e', f]}.flatten
files = FileList.new('doc-src/*').to_a.sort_by {|s| s.size} + %w[MIT-LICENSE VERSION]
t.options << '--files' << files.join(',')
t.options << '--template-path' << File.dirname(__FILE__) + '/yard'
end
Rake::Task['yard'].prerequisites.insert(0, 'yard:sass')
Rake::Task['yard'].instance_variable_set('@comment', nil)

desc "Generate Documentation"
Expand Down
1 change: 1 addition & 0 deletions yard/default/.gitignore
@@ -0,0 +1 @@
*.css
File renamed without changes.
20 changes: 0 additions & 20 deletions yard/full_doc_mods.rb

This file was deleted.

0 comments on commit 6d887f7

Please sign in to comment.