Sha256: e5f1391d68012fee32d648646c08bbf1a108a0ff96c6002763be61b823e156a3
Contents?: true
Size: 1.96 KB
Versions: 1
Compression:
Stored size: 1.96 KB
Contents
<% require 'doc_format' # set default page title if none was given unless page_title if h = @nodeTree.group2nodes[:latex].first page_title = h.title end end Listing = Struct.new(:name, :anchor, :key, :nodes) unless defined? Listing listings = ( DocProxy::GROUP2TYPES[:admonition] + DocProxy::GROUP2TYPES[:formal] ).flatten.inject([]) do |ary, key| nodes = @nodeTree.type2nodes[key] unless nodes.empty? ary << Listing.new(key.to_s.capitalize << 's', "toc:#{key}".to_html_anchor, key, nodes) end ary end %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <link rel="stylesheet" type="text/css" href="common.css" media="screen" /> <link rel="stylesheet" type="text/css" href="print.css" media="print" /> <link rel="alternate" type="application/rss+xml" href="<%= RSS_URL %>" title="<%= RSS_INFO %>" /> <title><%= page_title %></title> </head> <body> <% if insert_toc %> <div id="toc-links"> <% links = listings.map do |x| %{<a href="##{x.anchor}">#{x.name}</a>} end links.unshift %{<a href="#toc:contents">Contents</a>} %> <% links.each do |link| %> <%= link %> · <% end %> <a href="readme.html" style="color: green; font-size: larger;">Home page</a> </div> <% end %> <div id="body"><%= content %></div> <% if insert_toc %> <hr style="display: none"/> <div id="toc"> <h1 id="toc:contents">Contents</h1> <%= toc %> <% listings.each do |x| %> <h1 id="<%= x.anchor %>"><%= x.name %></h1> <ol> <% x.nodes.map do |node| %> <%= %{<li><a href="##{node.anchor}" id="#{node.tocAnchor}">#{node.title.to_html}</a></li>} %> <% end %> </ol> <% end %> </div> <% end %> </body> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-vpi-17.0.0 | doc/common.tpl |