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.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +48 -9
  3. data/Rakefile +1 -8
  4. data/json-schema-docs.gemspec +11 -0
  5. data/lib/json-schema-docs.rb +1 -0
  6. data/lib/json-schema-docs/configuration.rb +25 -2
  7. data/lib/json-schema-docs/generator.rb +93 -21
  8. data/lib/json-schema-docs/helpers.rb +17 -1
  9. data/lib/json-schema-docs/landing_pages/index.md +7 -0
  10. data/lib/json-schema-docs/layouts/assets/_sass/_content.scss +518 -0
  11. data/lib/json-schema-docs/layouts/assets/_sass/_header.scss +59 -0
  12. data/lib/json-schema-docs/layouts/assets/_sass/_links.scss +33 -0
  13. data/lib/json-schema-docs/layouts/assets/_sass/_normalize.scss +127 -0
  14. data/lib/json-schema-docs/layouts/assets/_sass/_resource.scss +23 -0
  15. data/lib/json-schema-docs/layouts/assets/_sass/_sidebar.scss +75 -0
  16. data/lib/json-schema-docs/layouts/assets/css/screen.scss +32 -0
  17. data/lib/json-schema-docs/layouts/default.html.erb +43 -0
  18. data/lib/json-schema-docs/layouts/includes/{example.md.erb → curl_example.html.erb} +3 -3
  19. data/lib/json-schema-docs/layouts/includes/resource_example.html.erb +3 -0
  20. data/lib/json-schema-docs/layouts/includes/{response.md.erb → response.html.erb} +5 -5
  21. data/lib/json-schema-docs/layouts/includes/sidebar.html.erb +31 -0
  22. data/lib/json-schema-docs/layouts/links.html.erb +73 -0
  23. data/lib/json-schema-docs/layouts/resource.html.erb +42 -0
  24. data/lib/json-schema-docs/parser.rb +12 -6
  25. data/lib/json-schema-docs/renderer.rb +67 -0
  26. data/lib/json-schema-docs/version.rb +1 -1
  27. metadata +144 -6
  28. data/lib/json-schema-docs/layouts/endpoint.md.erb +0 -39
  29. 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 %>