1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Files
docs/includes/graphql-object.html
Mike Surowiec d2199e3deb Use Doctocat link header style (#21615)
* update autolinkHeadings to use Doctocat link header style

* fix header link test

* update graphql/rest rendering to use doctocat header link

* fix: miniToc issue with stray anchor

Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-09-21 18:14:38 -04:00

31 lines
824 B
HTML

<div>
<div>
<h2 id="{{ item.id }}">
<a href="#{{ item.id }}" class="doctocat-link">{% include doctocat-link-icon %}</a>
{{- item.name -}}
</h2>
{{ item.description }}
</div>
<div>
{% include graphql-preview %} {% include graphql-deprecation %} {% if
item.implements %}
<h4>{% data ui.products.graphql.reference.implements %}</h4>
<ul>
{% for interface in item.implements %}
<li>
<code
><a href="/{{ currentLanguage }}{{ interface.href }}"
>{{ interface.name }}</a
></code
>
</li>
{% endfor %}
</ul>
{% endif %} {% if item.fields %}
<h4>{% data ui.products.graphql.reference.fields %}</h4>
{% assign fields = item.fields %} {% include graphql-fields %} {% endif %}
</div>
<hr />
</div>