1
0
mirror of synced 2026-01-09 06:03:09 -05:00

Merge branch 'main' into repo-sync

This commit is contained in:
Octomerger Bot
2021-09-24 17:48:02 -04:00
committed by GitHub
5 changed files with 38 additions and 32 deletions

View File

@@ -1 +1,2 @@
translations/
includes/

View File

@@ -8,13 +8,14 @@
</div>
<div>
{% include graphql-preview %} {% include graphql-deprecation %}
{% include graphql-preview %}
{% include graphql-deprecation %}
<h4>{% data ui.products.graphql.reference.values %}</h4>
{% for value in item.values %}
<p><strong>{{ value.name }}</strong></p>
<p>{{ value.description }}</p>
{% endfor %}
<h4>{% data ui.products.graphql.reference.values %}</h4>
{% for value in item.values %}
<p><strong>{{ value.name }}</strong></p>
<p>{{ value.description }}</p>
{% endfor %}
</div>
<hr />
</div>

View File

@@ -8,28 +8,28 @@
</div>
<div>
{% include graphql-preview %} {% include graphql-deprecation %}
{% include graphql-preview %}
{% include graphql-deprecation %}
<!-- Calculate and render "Implemented By" section -->
<!-- TODO instead of calculating in layout, better to calculate in graphql-data? -->
<h4>{% data ui.products.graphql.reference.implemented_by %}</h4>
<ul>
<!-- Loop over objects, then loop over object interfaces, and find a match -->
{% for object in graphql.schemaForCurrentVersion.objects %} {% for
interface in object.implements %} {% if interface.name == item.name %}
<li>
<code
><a href="/{{ currentLanguage }}{{ object.href }}"
>{{ object.name }}</a
></code
>
</li>
{% endif %} {% endfor %} {% endfor %}
</ul>
<!-- Calculate and render "Implemented By" section -->
<!-- TODO instead of calculating in layout, better to calculate in graphql-data? -->
<h4>{% data ui.products.graphql.reference.implemented_by %}</h4>
<ul>
<!-- Loop over objects, then loop over object interfaces, and find a match -->
{% for object in graphql.schemaForCurrentVersion.objects %}
{% for interface in object.implements %}
{% if interface.name == item.name %}
<li>
<code><a href="/{{ currentLanguage }}{{ object.href }}">{{ object.name }}</a></code>
</li>
{% endif %} {% endfor %} {% endfor %}
</ul>
{% if item.fields %}
<h4>{% data ui.products.graphql.reference.fields %}</h4>
{% assign fields = item.fields %} {% include graphql-fields %} {% endif %}
{% if item.fields %}
<h4>{% data ui.products.graphql.reference.fields %}</h4>
{% assign fields = item.fields %}
{% include graphql-fields %}
{% endif %}
</div>
<hr />
</div>

View File

@@ -4,13 +4,16 @@
<a href="#{{ item.id }}" class="doctocat-link">{% include doctocat-link-icon %}</a>
{{- item.name -}}
</h2>
{{ item.description }}
{{ item.description }}
</div>
<div>
{% include graphql-preview %} {% include graphql-deprecation %} {% assign
inputFields = item.inputFields %} {% assign returnFields = item.returnFields
%} {% include graphql-input-fields %} {% include graphql-return-fields %}
{% include graphql-preview %}
{% include graphql-deprecation %}
{% assign inputFields = item.inputFields %}
{% assign returnFields = item.returnFields %}
{% include graphql-input-fields %}
{% include graphql-return-fields %}
</div>
<hr />
</div>

View File

@@ -5,8 +5,9 @@
{{- item.name -}}
</h2>
{{ item.description }} {% include graphql-preview %} {% include
graphql-deprecation %}
{{ item.description }}
{% include graphql-preview %}
{% include graphql-deprecation %}
</div>
<hr />
</div>