Skip to content

Commit 751018d

Browse files
committed
Fix file links
1 parent f5cc861 commit 751018d

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

History.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
* N Bug Fixes
88
* Don't complain when exiting normally. Bug by Matt Neuburg.
9-
* Restore --inline-source that warns.
9+
* Restore --inline-source that warns
10+
* Fixed links to files in Darkfish output
1011

1112
=== 2.4.0 / 2009-02-24
1213

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
<h3 class="section-header">Files</h3>
118118
<ul>
119119
<% simple_files.each do |file| %>
120-
<li class="file"><a href="<%= rel_prefix %>/<%= file.base_name %>.html"><%= h file.base_name %></a></li>
120+
<li class="file"><a href="<%= rel_prefix %>/<%= file.path %>"><%= h file.base_name %></a></li>
121121
<% end %>
122122
</ul>
123123
</div>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<h3 class="section-header">Files</h3>
3131
<ul>
3232
<% simple_files.each do |f| %>
33-
<li class="file"><a href="<%= rel_prefix %>/<%= f.base_name %>.html"><%= h f.base_name %></a></li>
33+
<li class="file"><a href="<%= rel_prefix %>/<%= f.path %>"><%= h f.base_name %></a></li>
3434
<% end %>
3535
</ul>
3636
</div>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<h2>Files</h2>
3535
<ul>
3636
<% simple_files.sort.each do |file| %>
37-
<li class="file"><a href="<%= file.base_name %>.html"><%= h file.base_name %></a></li>
37+
<li class="file"><a href="<%= file.path %>"><%= h file.base_name %></a></li>
3838
<% end %>
3939
</ul>
4040
<% end %>

0 commit comments

Comments
 (0)