Sha256: e09cf9ff14205bc91bd42ffe389704ad721e443962d8574872f0e0aa000db63f

Contents?: true

Size: 1.37 KB

Versions: 7

Compression:

Stored size: 1.37 KB

Contents

<h1 class="resource-name"><a name="resource-<%= schemata['title'].downcase %>"><%= schemata['title'] %></a></h1>

<% if schemata['stability'] && !schemata['stability'].empty? %>
<p class="stability-info">Stability: <code class="stability-type"><%= schemata['stability'] %></code></p>
<% end %>

<p class=resource-description">
<%= markdownify.(schemata['description']) %>
</p>

<% if schemata['property_refs'] && !schemata['property_refs'].empty? %>

<div class="resource-copy-wrapper">
  <div class="resource-attributes">
    <h2 class="resource-attributes-title">Attributes</h2>
    <ul class="resource-attributes-list">
    <%- schemata['property_refs'].each do |property_ref| -%>
    <li class="resource-attributes-item">
      <h3 class="resource-attributes-item-label">
        <span class="resource-attributes-item-name">
          <%= property_ref[:name] %>
        </span>
        <span class="resource-attributes-item-type">
          <%= property_ref[:type] %>
        </span>
      </h3>
      <div class="resource-attributes-item-description-and-children">
        <p class="resource-attributes-item-description">
          <span><%= markdownify.(property_ref[:description]) %></span>
        </p>
      </div>
    </li>
    <%- end -%>
    </ul>
  </div>

  <div class="resource-example">
  <%= include.('resource_example.html.erb', example: schemata['example']) %>
  </div>
</div>

<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
json-schema-docs-0.3.1 lib/json-schema-docs/layouts/resource.html.erb
json-schema-docs-0.3.0 lib/json-schema-docs/layouts/resource.html.erb
json-schema-docs-0.2.4 lib/json-schema-docs/layouts/resource.html.erb
json-schema-docs-0.2.3 lib/json-schema-docs/layouts/resource.html.erb
json-schema-docs-0.2.2 lib/json-schema-docs/layouts/resource.html.erb
json-schema-docs-0.2.1 lib/json-schema-docs/layouts/resource.html.erb
json-schema-docs-0.2.0 lib/json-schema-docs/layouts/resource.html.erb