aboutsummaryrefslogtreecommitdiff
path: root/src/guff/views/api-docs.ecr
blob: 8611285940f18656afd837eba232b3ee82b5578d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<h1><%= TITLE %></h1>

<div class='section'>
<h2>Table of Contents</h2>
<ul><% namespaces.each do |namespace| %>
  <li>
    <%= namespace %>
    <ul><% methods(namespace).each do |method| %>
      <li>
        <a
          href='#m-<%= namespace %>-<%= method %>'
          title='View <%= namespace %>/<%= method %> details.'
        >
          <%= method %>
        </a>
      </li>
    <% end %></ul>
  </li>
<% end %></ul>
</div><!-- section -->

<% namespaces.each do |namespace| %>
  <% methods(namespace).each do |method| %>
    <div id='m-<%= namespace %>-<%= method %>' class='section'>
      <b><%= namespace %>/<%= method %></b> 

      <p><%=
        h(APIMethods::API[namespace][method][:text] as String)
      %></p>
    </div><!-- section -->
  <% end %>
<% end %>