From cc2a16d94d744d14d4a5eb06eca22137f8a9b79e Mon Sep 17 00:00:00 2001 From: drbrain Date: Wed, 2 Feb 2011 00:32:30 +0000 Subject: Import RDoc 3.5.1 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/generator/markup.rb | 4 ++++ .../generator/template/darkfish/classpage.rhtml | 2 +- lib/rdoc/generator/template/darkfish/rdoc.css | 26 +++++++++++++++++++++- 3 files changed, 30 insertions(+), 2 deletions(-) (limited to 'lib/rdoc/generator') diff --git a/lib/rdoc/generator/markup.rb b/lib/rdoc/generator/markup.rb index 482fd2b2a3..dd7c73044d 100644 --- a/lib/rdoc/generator/markup.rb +++ b/lib/rdoc/generator/markup.rb @@ -1,7 +1,11 @@ +# This file is loaded by generators. It allows RDoc's CodeObject tree to +# avoid loading generator code to increase startup time (for ri). + require 'rdoc/text' require 'rdoc/code_objects' require 'rdoc/generator' require 'rdoc/markup/to_html_crossref' +require 'rdoc/ruby_token' ## # Handle common RDoc::Markup tasks for various CodeObjects diff --git a/lib/rdoc/generator/template/darkfish/classpage.rhtml b/lib/rdoc/generator/template/darkfish/classpage.rhtml index 7d0cad0eed..4a1bdcdea9 100644 --- a/lib/rdoc/generator/template/darkfish/classpage.rhtml +++ b/lib/rdoc/generator/template/darkfish/classpage.rhtml @@ -228,7 +228,7 @@ <% if method.call_seq %> <% method.call_seq.strip.split("\n").each_with_index do |call_seq, i| %>
- <%= call_seq.strip.gsub(/->/, '→').gsub( /^\w.+\./m, '') %> + <%= call_seq.strip.gsub(/->/, '→').gsub( /^\w+\./m, '') %> <% if i == 0 %> click to toggle source <% end %> diff --git a/lib/rdoc/generator/template/darkfish/rdoc.css b/lib/rdoc/generator/template/darkfish/rdoc.css index 231f9b7f04..59f568ae47 100644 --- a/lib/rdoc/generator/template/darkfish/rdoc.css +++ b/lib/rdoc/generator/template/darkfish/rdoc.css @@ -97,6 +97,11 @@ body.file p { margin: 1em 0; } +.indexpage ol, +.file #documentation ol { + line-height: 160%; +} + .indexpage ul, .file #documentation ul { line-height: 160%; @@ -110,6 +115,20 @@ body.file p { .indexpage li, .file #documentation li { padding-left: 20px; +} + +.indexpage ol, +.file #documentation ol { + margin-left: 20px; +} + +.indexpage ol > li, +.file #documentation ol > li { + padding-left: 0; +} + +.indexpage ul > li, +.file #documentation ul > li { background: url(images/bullet_black.png) no-repeat left 4px; } .indexpage li.module { @@ -389,9 +408,14 @@ ul.link-list .type { #documentation .method-description, #documentation .aliases { margin: 0 20px; - line-height: 1.2em; color: #666; } + +#documentation .method-description p, +#documentation .aliases p { + line-height: 1.2em; +} + #documentation .aliases { padding-top: 4px; font-style: italic; -- cgit v1.2.3