diff options
| author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-24 04:07:46 +0000 |
|---|---|---|
| committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-24 04:07:46 +0000 |
| commit | d776187d4fec0b269dd99afd4aa1593facb61ff7 (patch) | |
| tree | 7c28a637fdd37e3bd4a2a449fccf83fb43126413 | |
| parent | e9fe5d5d7d739ddb62c0c0ad2efa79bb34787e8f (diff) | |
Deal with case where first file processed contains a :stopdoc:
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 11 | ||||
| -rw-r--r-- | lib/rdoc/generators/html_generator.rb | 15 |
2 files changed, 25 insertions, 1 deletions
@@ -1,3 +1,14 @@ +Tue Feb 24 07:23:30 2004 Dave Thomas <dave@pragprog.com> + + * lib/rdoc/generators/html_generator.rb: Deal with :stopdoc: when + choosing a default main page to display (ie. don't select a page + if we don't have documentation for it). + +Tue Feb 24 06:40:14 2004 Dave Thomas <dave@pragprog.com> + + * lib/rdoc/parsers/parse_rb.rb (RubyLex::identify_identifier): Handle + class variables in code listings + Tue Feb 24 06:40:14 2004 Dave Thomas <dave@pragprog.com> * lib/rdoc/parsers/parse_rb.rb (RubyLex::identify_identifier): Handle diff --git a/lib/rdoc/generators/html_generator.rb b/lib/rdoc/generators/html_generator.rb index a6a38f6a5c..8db578b934 100644 --- a/lib/rdoc/generators/html_generator.rb +++ b/lib/rdoc/generators/html_generator.rb @@ -1276,7 +1276,20 @@ module Generators end end - ref = @files[0].path unless ref + unless ref + for file in @files + if file.document_self + ref = file.path + break + end + end + end + + unless ref + $stderr.puts "Couldn't find anything to document" + $stderr.puts "Perhaps you've used :stopdoc: in all classes" + exit(1) + end ref end |
