Skip to content

Commit 2e4f920

Browse files
committed
Update darkfish theme, delete rorvswild theme folder
1 parent 277967b commit 2e4f920

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+956
-2736
lines changed
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<footer id="validator-badges" role="contentinfo">
2-
<p><a href="https://validator.w3.org/check/referer">Validate</a>
3-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> <%= RDoc::VERSION %>.
4-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
5-
</footer>
1+
<footer role="contentinfo">
2+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> <%= RDoc::VERSION %>. <a href="https://validator.w3.org/check/referer">Validate</a>.
3+
<p><a href="http://rorvswild.com/theme">RoRvsWild theme</a> based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a>.
4+
</footer>

lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div id="classindex-section" class="nav-section">
1+
<div class="nav-section">
22
<h3>Class and Module Index</h3>
33

44
<%-
@@ -9,22 +9,37 @@
99
end
1010
link = proc do |index_klass, display = index_klass.display?|
1111
if display
12-
-%><code><a href="<%= rel_prefix %>/<%= index_klass.path %>"><%= index_klass.name %></a></code><%-
12+
-%><a href="<%= rel_prefix %>/<%= index_klass.path %>"><%= index_klass.name %></a><%-
1313
else
14-
-%><code><%= index_klass.name %></code><%-
14+
-%><%= index_klass.name %><%-
1515
end
1616
end
17+
18+
def has_active_descendant?(klass, current, all_classes)
19+
return false unless defined?(current)
20+
return true if klass == current
21+
children = all_classes[klass.full_name]
22+
return false unless children
23+
children.any? { |child| has_active_descendant?(child, current, all_classes) }
24+
end
25+
1726
if top = all_classes[nil]
1827
solo = top.one? {|klass| klass.display?}
19-
traverse = proc do |klasses| -%>
20-
<ul class="link-list">
28+
traverse = proc do |klasses|
29+
has_active_descendant = false
30+
-%>
31+
<ul class="link-list" id="class-and-module-index">
2132
<%- klasses.each do |index_klass| -%>
2233
<%- if children = all_classes[index_klass.full_name] -%>
23-
<li><details<% if solo; solo = false %> open<% end %>><summary><% link.call(index_klass) %></summary>
24-
<%- traverse.call(children) -%>
25-
</ul></details>
34+
<li class="<%= "active" if defined?(current) && (index_klass == current) %>">
35+
<details<% if solo || (defined?(current) && has_active_descendant?(index_klass, current, all_classes)); solo = false %> open<% end %>>
36+
<summary><% link.call(index_klass) %></summary>
37+
<%- traverse.call(children) -%>
38+
</ul>
39+
</details>
2640
<%- elsif index_klass.display? -%>
27-
<li><% link.call(index_klass, true) %>
41+
<li class="<%= "active" if defined?(current) && (index_klass == current) %>">
42+
<% link.call(index_klass, true) %>
2843
<%- end -%>
2944
<%- end -%>
3045
<%- end -%>
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<%- unless klass.extends.empty? then %>
2-
<div id="extends-section" class="nav-section">
3-
<h3>Extended With Modules</h3>
2+
<div class="nav-section">
3+
<h3>Extended With Modules</h3>
44

5-
<ul class="link-list">
6-
<%- klass.each_extend do |ext| -%>
7-
<%- unless String === ext.module then -%>
8-
<li><a class="extend" href="<%= klass.aref_to ext.module.path %>"><%= ext.module.full_name %></a>
9-
<%- else -%>
10-
<li><span class="extend"><%= ext.name %></span>
11-
<%- end -%>
12-
<%- end -%>
13-
</ul>
14-
</div>
5+
<ul class="link-list">
6+
<%- klass.each_extend do |ext| -%>
7+
<%- unless String === ext.module then -%>
8+
<li><a class="extend" href="<%= klass.aref_to ext.module.path %>"><%= ext.module.full_name %></a>
9+
<%- else -%>
10+
<li><span class="extend"><%= ext.name %></span>
11+
<%- end -%>
12+
<%- end -%>
13+
</ul>
14+
</div>
1515
<%- end -%>
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
<div id="file-list-section" class="nav-section">
22
<h3>Defined In</h3>
3-
43
<ul>
5-
<%- klass.in_files.each do |tl| -%>
6-
<li><%= h tl.relative_name %>
7-
<%- end -%>
4+
<%- klass.in_files.each do |tl| -%>
5+
<li><%= h tl.relative_name %>
6+
<%- end -%>
87
</ul>
98
</div>
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<%- unless klass.includes.empty? then %>
2-
<div id="includes-section" class="nav-section">
3-
<h3>Included Modules</h3>
2+
<div class="nav-section">
3+
<h3>Included Modules</h3>
44

5-
<ul class="link-list">
6-
<%- klass.each_include do |inc| -%>
7-
<%- unless String === inc.module then -%>
8-
<li><a class="include" href="<%= klass.aref_to inc.module.path %>"><%= inc.module.full_name %></a>
9-
<%- else -%>
10-
<li><span class="include"><%= inc.name %></span>
11-
<%- end -%>
12-
<%- end -%>
13-
</ul>
14-
</div>
5+
<ul class="link-list">
6+
<%- klass.each_include do |inc| -%>
7+
<%- unless String === inc.module then -%>
8+
<li><a class="include" href="<%= klass.aref_to inc.module.path %>"><%= inc.module.full_name %></a>
9+
<%- else -%>
10+
<li><span class="include"><%= inc.name %></span>
11+
<%- end -%>
12+
<%- end -%>
13+
</ul>
14+
</div>
1515
<%- end -%>
Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
1-
<%- unless klass.method_list.empty? then %>
2-
<!-- Method Quickref -->
3-
<div id="method-list-section" class="nav-section">
4-
<h3>Methods</h3>
1+
<% if (class_methods = klass.class_method_list.sort).any? %>
2+
<div class="nav-section">
3+
<h3>Class Methods</h3>
4+
<ul class="link-list" role="directory">
5+
<%- class_methods.each do |meth| -%>
6+
<li <%- if meth.calls_super %>class="calls-super" <%- end %>><a href="#<%= meth.aref %>"><%= h meth.name -%></a></li>
7+
<%- end -%>
8+
</ul>
9+
</div>
10+
<% end %>
511

6-
<ul class="link-list" role="directory">
7-
<%- klass.each_method do |meth| -%>
8-
<li <%- if meth.calls_super %>class="calls-super" <%- end %>><a href="#<%= meth.aref %>"><%= meth.singleton ? '::' : '#' %><%= h meth.name -%></a>
9-
<%- end -%>
10-
</ul>
11-
</div>
12-
<%- end -%>
12+
<% if (instance_methods = klass.instance_methods.sort).any? %>
13+
<div class="nav-section">
14+
<h3>Instance Methods</h3>
15+
<ul class="link-list" role="directory">
16+
<%- instance_methods.each do |meth| -%>
17+
<li <%- if meth.calls_super %>class="calls-super" <%- end %>><a href="#<%= meth.aref %>"><%= h meth.name -%></a></li>
18+
<%- end -%>
19+
</ul>
20+
</div>
21+
<% end %>

lib/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)