Skip to content

Commit 0fbfdf0

Browse files
authored
revert alignment back to pre-prettified format (github#21735)
1 parent 00969a3 commit 0fbfdf0

5 files changed

+38
-32
lines changed

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
translations/
2+
includes/

includes/graphql-enum.html

+7-6
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ <h2 id="{{ item.id }}">
88
</div>
99

1010
<div>
11-
{% include graphql-preview %} {% include graphql-deprecation %}
11+
{% include graphql-preview %}
12+
{% include graphql-deprecation %}
1213

13-
<h4>{% data ui.products.graphql.reference.values %}</h4>
14-
{% for value in item.values %}
15-
<p><strong>{{ value.name }}</strong></p>
16-
<p>{{ value.description }}</p>
17-
{% endfor %}
14+
<h4>{% data ui.products.graphql.reference.values %}</h4>
15+
{% for value in item.values %}
16+
<p><strong>{{ value.name }}</strong></p>
17+
<p>{{ value.description }}</p>
18+
{% endfor %}
1819
</div>
1920
<hr />
2021
</div>

includes/graphql-interface.html

+20-20
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,28 @@ <h2 id="{{ item.id }}">
88
</div>
99

1010
<div>
11-
{% include graphql-preview %} {% include graphql-deprecation %}
11+
{% include graphql-preview %}
12+
{% include graphql-deprecation %}
1213

13-
<!-- Calculate and render "Implemented By" section -->
14-
<!-- TODO instead of calculating in layout, better to calculate in graphql-data? -->
15-
<h4>{% data ui.products.graphql.reference.implemented_by %}</h4>
16-
<ul>
17-
<!-- Loop over objects, then loop over object interfaces, and find a match -->
18-
{% for object in graphql.schemaForCurrentVersion.objects %} {% for
19-
interface in object.implements %} {% if interface.name == item.name %}
20-
<li>
21-
<code
22-
><a href="/{{ currentLanguage }}{{ object.href }}"
23-
>{{ object.name }}</a
24-
></code
25-
>
26-
</li>
27-
{% endif %} {% endfor %} {% endfor %}
28-
</ul>
14+
<!-- Calculate and render "Implemented By" section -->
15+
<!-- TODO instead of calculating in layout, better to calculate in graphql-data? -->
16+
<h4>{% data ui.products.graphql.reference.implemented_by %}</h4>
17+
<ul>
18+
<!-- Loop over objects, then loop over object interfaces, and find a match -->
19+
{% for object in graphql.schemaForCurrentVersion.objects %}
20+
{% for interface in object.implements %}
21+
{% if interface.name == item.name %}
22+
<li>
23+
<code><a href="/{{ currentLanguage }}{{ object.href }}">{{ object.name }}</a></code>
24+
</li>
25+
{% endif %} {% endfor %} {% endfor %}
26+
</ul>
2927

30-
{% if item.fields %}
31-
<h4>{% data ui.products.graphql.reference.fields %}</h4>
32-
{% assign fields = item.fields %} {% include graphql-fields %} {% endif %}
28+
{% if item.fields %}
29+
<h4>{% data ui.products.graphql.reference.fields %}</h4>
30+
{% assign fields = item.fields %}
31+
{% include graphql-fields %}
32+
{% endif %}
3333
</div>
3434
<hr />
3535
</div>

includes/graphql-mutation.html

+7-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@ <h2 id="{{ item.id }}">
44
<a href="#{{ item.id }}" class="doctocat-link">{% include doctocat-link-icon %}</a>
55
{{- item.name -}}
66
</h2>
7-
{{ item.description }}
7+
{{ item.description }}
88
</div>
99

1010
<div>
11-
{% include graphql-preview %} {% include graphql-deprecation %} {% assign
12-
inputFields = item.inputFields %} {% assign returnFields = item.returnFields
13-
%} {% include graphql-input-fields %} {% include graphql-return-fields %}
11+
{% include graphql-preview %}
12+
{% include graphql-deprecation %}
13+
{% assign inputFields = item.inputFields %}
14+
{% assign returnFields = item.returnFields %}
15+
{% include graphql-input-fields %}
16+
{% include graphql-return-fields %}
1417
</div>
1518
<hr />
1619
</div>

includes/graphql-scalar.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ <h2 id="{{ item.id }}">
55
{{- item.name -}}
66
</h2>
77

8-
{{ item.description }} {% include graphql-preview %} {% include
9-
graphql-deprecation %}
8+
{{ item.description }}
9+
{% include graphql-preview %}
10+
{% include graphql-deprecation %}
1011
</div>
1112
<hr />
1213
</div>

0 commit comments

Comments
 (0)