Skip to content

Commit

Permalink
Adding permalinks to classes and methods in Flipbook
Browse files Browse the repository at this point in the history
  • Loading branch information
judofyr committed Aug 4, 2009
1 parent d81b7a8 commit 62ee809
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions extras/rdoc/generator/template/flipbook/reference.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
<h1>Camping, the Reference</h1>

<% @modsort.each do |klass| %>
<h2 class="ruled">
<%# puts klass.class.ancestors;exit %>
<h2 class="ruled" id="class-<%= klass.full_name %>">
<%= klass.type.capitalize %>
<%= klass.full_name %>
<% if klass.type == 'class' %>
Expand All @@ -45,10 +44,10 @@
visibilities.each do |visibility, methods|
next if methods.empty?
methods.each do |method| %>
<h4 class="ruled">
<h4 class="ruled" id="<%= method.aref %>">
<%= visibility.to_s.capitalize %> <%= type.capitalize %> method:
<strong><%= method.pretty_name %><%= method.params%></strong>
<a href="#" class="permalink">[permalink]</a>
<a href="<%= method.path %>" class="permalink">[permalink]</a>
</h4>
<%= method.description %>
<p class="source-link">[ <a href="#">show source</a> ]</p>
Expand Down

0 comments on commit 62ee809

Please sign in to comment.