Sha256: bdc968510a9fc8afe232976d7de3fa2322989ad80e56b6924adf4b4924b89e58

Contents?: true

Size: 1.57 KB

Versions: 3

Compression:

Stored size: 1.57 KB

Contents

<%
 @title = _('Library Index')
 @description = _('Library Index')
%>
<% if @conf[:canonical_base_url] %>
<script type="application/ld+json">
<%=
  breadcrumb_json_ld(
    [
      {
        name: manual_home_name,
        url: absolute_url_to(@urlmapper.document_url('index'))
      },
      {
        name: _('All Libraries'),
        url: canonical_url
      }
    ]
  )
%>
</script>
<% end %>
<header>
  <nav>
    <ol class="inline-breadcrumb-list">
      <li>
        <%= manual_home_link() %>
      </li>
      <li>
        <%= _('All Libraries') %>
      </li>
    </ol>
  </nav>
<% headline_init %>
<%= headline(_("Library Index")) %>
</header>

<main>
<%
    headline_push
    weight = {"Builtin" => "", "" => "\x7f\x7f"}
    entry_table = @entries.group_by{|lib| lib.category }.to_a
    entry_table.sort_by! do |pair|
      category = pair[0]
      pair.last.sort!
      pair[0] = "Other" if category == ""
      weight[category] || category
    end
    first = true
    entry_table.each do |category, libs|
%>
<% if first then first = false else %> / <% end %>
<a href="#<%= category %>"><%= h _(category) %></a>
<%
    end
    entry_table.each do |category, libs|
%>
<span id="<%= category %>"><%= headline(_(category)) %></span>
<table class="entries libraries">
<%
      libs.each do |lib|
        next if lib.is_sublibrary
        label = _('Builtin Library') if lib.id == '_builtin'
%>
<tr>
<td class="signature"><%= library_link(lib.name, label) %></td>
<td class="description"><%= compile_rd(lib.synopsis_source) %></td>
</tr>
<%
      end
%>
</table>
<%
    end
    headline_pop
%>
</main>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bitclust-core-1.3.0 data/bitclust/template.offline/library-index
bitclust-core-1.2.6 data/bitclust/template.offline/library-index
bitclust-core-1.2.5 data/bitclust/template.offline/library-index