Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deprecations to connection fields #68

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion lib/graphql-docs/layouts/includes/connections.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@
<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>

<div class="description-wrapper">
<% if connection[:is_deprecated] %>
<div class="deprecation-notice <%= classes[:deprecation_notice] %>">
<span class="deprecation-title">Deprecation notice</span>
<%= markdownify.(connection[:deprecation_reason]) %>
</div>
<% end %>

<%= include.('notices.html', notices: connection[:notices]) %>
<p><%= connection[:description] %></p>

<p><%= markdownify.(connection[:description]) %></p>

<% unless connection[:arguments].empty? %>
<%= include.('arguments.html', arguments: connection[:arguments]) %>
Expand Down