mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Deal with case where first file processed contains a :stopdoc:
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
65db4654f6
commit
47d12ab8d0
2 changed files with 20 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue