graphql-docs 1.7.1 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b8aeeefd183dec4f3daf5bba4ede8333fce947a0b87bac8bfd3ab30b6dc75900
4
- data.tar.gz: 849e016f25d316db9c0b71c25e9847422ac32031679080d91b5385b7301c95b2
3
+ metadata.gz: 664552097194b2af829edfabafa819abd4ce8d82e9c170d6345e3c8dd91028b3
4
+ data.tar.gz: 74187b8b707df6c49a4645c26784fde7b0b92c8664b2223a3c093f83ac80a160
5
5
  SHA512:
6
- metadata.gz: 2505fb4bf17c53909b06e70e766bf8583c530a1b53e17eebe06a2b9d605556146c2dbcdbf6ff78e92fe2198ccf0d98a884a8c7367a9e850b49a0d027f653ff95
7
- data.tar.gz: 364fbac6b317c7821e5e8048ffab2a6cedd39c2331ce50fd1605cd87a56dda9240058b40c4577c9f9b12af49dba830a9a130094835f6ab9b4b610d185a6bbed1
6
+ metadata.gz: 3c531188f4244965dae3d0b8561a19813a1e17e75a50d50b4d5635dac9f0f8883772104f713c004aec888d50f757cd53798004a03ef9dbc3f70569323e38174b
7
+ data.tar.gz: abfead7c929a259f12abadb2952e31363767f089c5cc6bafd33a19adab0f9be376c5e86a8f5e20a82532b38a5aff6b14736ec64c5527a78a94c8a87876c13e51
@@ -4,8 +4,11 @@
4
4
  <span id="<%= slugify.(connection[:name]) %>" class="field-name connection-name anchored"><%= connection[:name] %> (<code><a href="<%= base_url %>/<%= connection[:type][:path] %>"><%= connection[:type][:info] %></a></code>)</span>
5
5
 
6
6
  <div class="description-wrapper">
7
+ <%= include.('deprecations.html', item: connection) %>
8
+
7
9
  <%= include.('notices.html', notices: connection[:notices]) %>
8
- <p><%= connection[:description] %></p>
10
+
11
+ <%= markdownify.(connection[:description]) %>
9
12
 
10
13
  <% unless connection[:arguments].empty? %>
11
14
  <%= include.('arguments.html', arguments: connection[:arguments]) %>
@@ -0,0 +1,6 @@
1
+ <% if item[:is_deprecated] %>
2
+ <div class="deprecation-notice <%= classes[:deprecation_notice] %>">
3
+ <span class="deprecation-title">Deprecation notice</span>
4
+ <%= markdownify.(item[:deprecation_reason]) %>
5
+ </div>
6
+ <% end %>
@@ -4,21 +4,15 @@
4
4
  <span id="<%= slugify.(field[:name]) %>" class="field-name anchored"><%= field[:name] %> (<code><a href="<%= base_url %>/<%= field[:type][:path] %>"><%= field[:type][:info] %></a></code>)</span>
5
5
 
6
6
  <div class="description-wrapper">
7
- <% if field[:is_deprecated] %>
8
- <div class="deprecation-notice <%= classes[:deprecation_notice] %>">
9
- <span class="deprecation-title">Deprecation notice</span>
10
- <%= markdownify.(field[:deprecation_reason]) %>
11
- </div>
12
- <% end %>
7
+ <%= include.('deprecations.html', item: field) %>
13
8
 
14
- <%= include.('notices.html', notices: field[:notices]) %>
9
+ <%= include.('notices.html', notices: field[:notices]) %>
15
10
 
16
- <%= markdownify.(field[:description]) %>
17
-
18
- <% unless field[:arguments].empty? %>
19
- <%= include.('arguments.html', arguments: field[:arguments]) %>
20
- <% end %>
11
+ <%= markdownify.(field[:description]) %>
21
12
 
13
+ <% unless field[:arguments].empty? %>
14
+ <%= include.('arguments.html', arguments: field[:arguments]) %>
15
+ <% end %>
22
16
  </div>
23
17
  </div>
24
18
 
@@ -5,16 +5,11 @@
5
5
  <h4 id="<%= slugify.(value[:name]) %>" class="name anchored"><%= value[:name] %></h4>
6
6
 
7
7
  <div class="description-wrapper">
8
- <%= include.('notices.html', notices: value[:notices]) %>
8
+ <%= include.('deprecations.html', item: value) %>
9
9
 
10
- <% if value[:is_deprecated] %>
11
- <div class="deprecation-notice <%= classes[:deprecation_notice] %>">
12
- <span class="deprecation-title">Deprecation notice</span>
13
- <%= markdownify.(value[:deprecation_reason]) %>
14
- </div>
15
- <% end %>
10
+ <%= include.('notices.html', notices: value[:notices]) %>
16
11
 
17
- <p><%= value[:description] %></p>
12
+ <%= markdownify.(value[:description]) %>
18
13
  </div>
19
14
 
20
15
  <% end %>
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module GraphQLDocs
3
- VERSION = '1.7.1'.freeze
3
+ VERSION = '1.8.0'.freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql-docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-14 00:00:00.000000000 Z
11
+ date: 2019-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql
@@ -306,6 +306,7 @@ files:
306
306
  - lib/graphql-docs/layouts/graphql_unions.html
307
307
  - lib/graphql-docs/layouts/includes/arguments.html
308
308
  - lib/graphql-docs/layouts/includes/connections.html
309
+ - lib/graphql-docs/layouts/includes/deprecations.html
309
310
  - lib/graphql-docs/layouts/includes/fields.html
310
311
  - lib/graphql-docs/layouts/includes/input_fields.html
311
312
  - lib/graphql-docs/layouts/includes/notices.html