Sha256: 34ff57c385e6f00acb3f8063865140c83b54952b3adeaa74e869d32c74ac0dda

Contents?: true

Size: 1.03 KB

Versions: 5

Compression:

Stored size: 1.03 KB

Contents

<!DOCTYPE html>
<html>
  <head>
    <%= erb(:headers) %>

    <% inline_stylesheets.each do |style| %>
      <%= erb(style) %>
    <% end %>
  </head>

  <body class="theme-<%= api_options.theme %> <%= 'onefile' if api_options.one_file %>">
    <div id="sidebar">
      <%= erb(:sidebar) %>
    </div>

    <% if options[:all_resources] %>
      <div id="content">
        <% if api_options.one_file %>
          <% static_pages.each do |page| %>
            <%= diskfile page[:src] %>
          <% end %>
        <% end %>

        <% @endpoints = options[:endpoints].values.flatten %>
        <%= erb "../../topic/html/endpoints" %>

        <% options[:resources].each do |resource, controllers| %>
          <%= yieldall object: resource, controllers: controllers %>
        <% end %>
      </div>
    <% else %>
      <div id="content"><%= yieldall %></div>
    <% end %>

    <% if api_options.show_footer %>
      <%= erb(:footer) %>
    <% end %>

    <% inline_javascripts.each do |script| %>
      <%= erb(script) %>
    <% end %>
  </body>
</html>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yard-api-0.3.5 templates/api/layout/html/layout.erb
yard-api-0.3.4 templates/api/layout/html/layout.erb
yard-api-0.3.3 templates/api/layout/html/layout.erb
yard-api-0.3.2 templates/api/layout/html/layout.erb
yard-api-0.3.1 templates/api/layout/html/layout.erb