Skip to content

Commit d7b6717

Browse files
committed
Add missing HTML tags
1 parent ac2a6fb commit d7b6717

13 files changed

+36
-27
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<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>.
2+
<p><a href="https://validator.w3.org/check/referer">Validate</a></p>
3+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> <%= RDoc::VERSION %>.</p>
4+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</p>
55
</footer>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
<h3>Extended With Modules</h3>
44

55
<ul class="link-list">
6-
<%- klass.extends.each do |ext| -%>
6+
<%- klass.extends.each do |ext| -%>
77
<%- unless String === ext.module then -%>
8-
<li><a class="extend" href="<%= klass.aref_to ext.module.path %>"><%= ext.module.full_name %></a>
8+
<li><a class="extend" href="<%= klass.aref_to ext.module.path %>"><%= ext.module.full_name %></a></li>
99
<%- else -%>
10-
<li><span class="extend"><%= ext.name %></span>
10+
<li><span class="extend"><%= ext.name %></span></li>
1111
<%- end -%>
1212
<%- end -%>
1313
</ul>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<ul class="link-list">
66
<%- klass.includes.each do |inc| -%>
77
<%- unless String === inc.module then -%>
8-
<li><a class="include" href="<%= klass.aref_to inc.module.path %>"><%= inc.module.full_name %></a>
8+
<li><a class="include" href="<%= klass.aref_to inc.module.path %>"><%= inc.module.full_name %></a></li>
99
<%- else -%>
10-
<li><span class="include"><%= inc.name %></span>
10+
<li><span class="include"><%= inc.name %></span></li>
1111
<%- end -%>
1212
<%- end -%>
1313
</ul>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<%- else -%>
1111
<%= h name %>
1212
<%- end -%>
13+
</li>
1314
<%- end -%>
1415
</ul>
1516
</div>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<%- end.each do |n, files| -%>
1313
<%- f = files.shift -%>
1414
<%- if files.empty? -%>
15-
<li><a href="<%= rel_prefix %>/<%= h f.path %>"><%= h f.page_name %></a>
15+
<li><a href="<%= rel_prefix %>/<%= h f.path %>"><%= h f.page_name %></a></li>
1616
<%- next -%>
1717
<%- end -%>
1818
<li><details<% if dir == n %> open<% end %>><summary><%
@@ -23,9 +23,9 @@
2323
end %></summary>
2424
<ul class="link-list">
2525
<%- files.each do |f| -%>
26-
<li><a href="<%= rel_prefix %>/<%= h f.path %>"><%= h f.page_name %></a>
26+
<li><a href="<%= rel_prefix %>/<%= h f.path %>"><%= h f.page_name %></a></li>
2727
<%- end -%>
28-
</ul></details>
28+
</ul></details></li>
2929
<%- end -%>
3030
</ul>
3131
</div>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<%- while table.first && table.first.level >= level -%>
1919
<%- heading = table.shift -%>
2020
<%- if table.first.nil? || table.first.level <= heading.level -%>
21-
<li><% display_link.call heading -%>
21+
<li><% display_link.call heading -%></li>
2222
<%- else -%>
2323
<li>
2424
<details open>

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
</header>
6868
<dl>
6969
<%- constants.each do |const| -%>
70-
<dt id="<%= const.name %>"><%= const.name %>
70+
<dt id="<%= const.name %>"><%= const.name %></dt>
7171
<%- if const.comment then -%>
7272
<dd>
7373
<%- if const.mixin_from then -%>
@@ -76,8 +76,9 @@
7676
</div>
7777
<%- end -%>
7878
<%= const.description.strip %>
79+
</dd>
7980
<%- else -%>
80-
<dd class="missing-docs">(Not documented)
81+
<dd class="missing-docs">(Not documented)</dd>
8182
<%- end -%>
8283
<%- end -%>
8384
</dl>
@@ -108,7 +109,7 @@
108109
<%- if attrib.comment then -%>
109110
<%= attrib.description.strip %>
110111
<%- else -%>
111-
<p class="missing-docs">(Not documented)
112+
<p class="missing-docs">(Not documented)</p>
112113
<%- end -%>
113114
</div>
114115
</div>
@@ -179,7 +180,7 @@
179180
<%- if method.comment then -%>
180181
<%= method.description.strip %>
181182
<%- else -%>
182-
<p class="missing-docs">(Not documented)
183+
<p class="missing-docs">(Not documented)</p>
183184
<%- end -%>
184185
<%- if method.calls_super then -%>
185186
<div class="method-calls-super">
@@ -219,3 +220,4 @@
219220
</section>
220221
<%- end -%>
221222
</main>
223+
</body>

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<%- if @main_page %>
1919
<%= @main_page.description %>
2020
<%- else -%>
21-
<p>This is the API documentation for <%= h @title %>.
21+
<p>This is the API documentation for <%= h @title %>.</p>
2222
<%- end -%>
2323
</main>
24+
</body>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@
1616
<main role="main" aria-label="Page <%=h file.full_name%>">
1717
<%= file.description %>
1818
</main>
19+
</body>

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@
1616
<main role="main">
1717
<h1>Not Found</h1>
1818

19-
<p><%= message %>
19+
<p><%= message %></p>
2020
</main>
21+
</body>

0 commit comments

Comments
 (0)