Skip to content

Commit

Permalink
Added some more output path debugging
Browse files Browse the repository at this point in the history
--HG--
extra : convert_revision : svn%3A8c66a899-4b77-dc11-840b-00304827d434/trunk%4013
  • Loading branch information
deveiant committed May 3, 2008
1 parent 887082e commit 56d1648
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/rdoc/generators/darkfish_generator.rb
Expand Up @@ -240,7 +240,7 @@ def generate_index( options, files, classes )
### Generate a documentation file for each class present in the
### given hash of +classes+.
def generate_class_files( options, files, classes )
debug_msg "Generating class documentation"
debug_msg "Generating class documentation in #@outputdir"
templatefile = @template_dir + 'classpage.rhtml'
outputdir = @outputdir

Expand All @@ -260,15 +260,16 @@ def generate_class_files( options, files, classes )
### Generate a documentation file for each file present in the
### given hash of +files+.
def generate_file_files( options, files, classes )
debug_msg "Generating file documentation"
debug_msg "Generating file documentation in #@outputdir"
templatefile = @template_dir + 'filepage.rhtml'

files.sort_by {|k,v| k }.each do |path, fileinfo|
debug_msg " working on %s (%s)" % [ path, fileinfo[:outfile] ]
outfile = @outputdir + fileinfo[:outfile]
debug_msg " working on %s (%s)" % [ path, outfile ]
rel_prefix = @outputdir.relative_path_from( outfile.dirname )
context = binding()

debug_msg " rending #{outfile}"
self.render_template( templatefile, binding(), outfile )
end
end
Expand Down

0 comments on commit 56d1648

Please sign in to comment.