Local RDoc Documentation
Here you can browse local documentation from the ruby standard library and
your installed gems.
<% extra_dirs = installed.select { |_, _, _, type,| type == :extra } %>
<% unless extra_dirs.empty? %>
Extra Documentation Directories
The following additional documentation directories are available:
<% extra_dirs.each do |name, href, exists, _, path| %>
-
<% if exists %>
<%= h name %> (<%= h path %>)
<% else %>
<%= h name %> (<%= h path %>; not available)
<% end %>
<% end %>
<% end %>
<% gems = installed.select { |_, _, _, type,| type == :gem } %>
<% missing = gems.reject { |_, _, exists,| exists } %>
<% unless missing.empty? then %>
Missing Gem Documentation
You are missing documentation for some of your installed gems.
You can install missing documentation for gems by running
gem rdoc --all. After installing the missing documentation you
only need to reload this page. The newly created documentation will
automatically appear.
You can also install documentation for a specific gem by running one of
the following commands.
<% names = missing.map { |name,| name.sub(/-([^-]*)$/, '') }.uniq %>
<% names.each do |name| %>
- gem rdoc <%=h name %>
<% end %>
<% end %>