json-schema-docs 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +48 -9
- data/Rakefile +1 -8
- data/json-schema-docs.gemspec +11 -0
- data/lib/json-schema-docs.rb +1 -0
- data/lib/json-schema-docs/configuration.rb +25 -2
- data/lib/json-schema-docs/generator.rb +93 -21
- data/lib/json-schema-docs/helpers.rb +17 -1
- data/lib/json-schema-docs/landing_pages/index.md +7 -0
- data/lib/json-schema-docs/layouts/assets/_sass/_content.scss +518 -0
- data/lib/json-schema-docs/layouts/assets/_sass/_header.scss +59 -0
- data/lib/json-schema-docs/layouts/assets/_sass/_links.scss +33 -0
- data/lib/json-schema-docs/layouts/assets/_sass/_normalize.scss +127 -0
- data/lib/json-schema-docs/layouts/assets/_sass/_resource.scss +23 -0
- data/lib/json-schema-docs/layouts/assets/_sass/_sidebar.scss +75 -0
- data/lib/json-schema-docs/layouts/assets/css/screen.scss +32 -0
- data/lib/json-schema-docs/layouts/default.html.erb +43 -0
- data/lib/json-schema-docs/layouts/includes/{example.md.erb → curl_example.html.erb} +3 -3
- data/lib/json-schema-docs/layouts/includes/resource_example.html.erb +3 -0
- data/lib/json-schema-docs/layouts/includes/{response.md.erb → response.html.erb} +5 -5
- data/lib/json-schema-docs/layouts/includes/sidebar.html.erb +31 -0
- data/lib/json-schema-docs/layouts/links.html.erb +73 -0
- data/lib/json-schema-docs/layouts/resource.html.erb +42 -0
- data/lib/json-schema-docs/parser.rb +12 -6
- data/lib/json-schema-docs/renderer.rb +67 -0
- data/lib/json-schema-docs/version.rb +1 -1
- metadata +144 -6
- data/lib/json-schema-docs/layouts/endpoint.md.erb +0 -39
- data/lib/json-schema-docs/layouts/object.md.erb +0 -17
@@ -1,17 +0,0 @@
|
|
1
|
-
# <a class="header-link" name="resource-<%= schemata['title'].downcase %>"><%= schemata['title'] %></a>
|
2
|
-
|
3
|
-
<% if schemata['stability'] && !schemata['stability'].empty? %>
|
4
|
-
Stability: `<%= schemata['stability'] %>`
|
5
|
-
<% end %>
|
6
|
-
|
7
|
-
<%= schemata['description'] %>
|
8
|
-
|
9
|
-
<% if schemata['property_refs'] && !schemata['property_refs'].empty? %>
|
10
|
-
## Attributes
|
11
|
-
|
12
|
-
| Name | Type | Description | Example |
|
13
|
-
| ------- | ------- | ------- | ------- |
|
14
|
-
<%- schemata['property_refs'].each do |property_ref| -%>
|
15
|
-
| **<%= property_ref[:name] %>** | *<%= property_ref[:type] %>* | <%= property_ref[:description] %> | <%= property_ref[:example] %> |
|
16
|
-
<%- end -%>
|
17
|
-
<% end %>
|