aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc/generator
diff options
context:
space:
mode:
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;