summaryrefslogtreecommitdiff
path: root/lib/rdoc/generator
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-02 00:32:30 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-02 00:32:30 +0000
commitcc2a16d94d744d14d4a5eb06eca22137f8a9b79e (patch)
tree2907a20e2d9ae3a2831707056bb3fe2d384b066d /lib/rdoc/generator
parent918f625a5eeba35b9b191cb39c1d634b4cc7efee (diff)
Import RDoc 3.5.1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/generator')
-rw-r--r--lib/rdoc/generator/markup.rb4
-rw-r--r--lib/rdoc/generator/template/darkfish/classpage.rhtml2
-rw-r--r--lib/rdoc/generator/template/darkfish/rdoc.css26
3 files changed, 30 insertions, 2 deletions
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| %>
<div class="method-heading">
- <span class="method-callseq"><%= call_seq.strip.gsub(/->/, '&rarr;').gsub( /^\w.+\./m, '') %></span>
+ <span class="method-callseq"><%= call_seq.strip.gsub(/->/, '&rarr;').gsub( /^\w+\./m, '') %></span>
<% if i == 0 %>
<span class="method-click-advice">click to toggle source</span>
<% 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;