File: guides.html

package info (click to toggle)
ruby-graphql 2.2.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,584 kB
  • sloc: ruby: 67,505; ansic: 1,753; yacc: 831; javascript: 331; makefile: 6
file content (71 lines) | stat: -rw-r--r-- 2,014 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
title: Guides Index
sections:
  - name: Schema
  - name: Queries
  - name: Type Definitions
  - name: Authorization
  - name: Fields
  - name: Mutations
  - name: Errors
  - name: Pagination
  - name: Relay
  - name: Dataloader
  - name: Subscriptions
  - name: GraphQL Pro
  - name: GraphQL Pro - OperationStore
  - name: GraphQL Pro - Defer
  - name: GraphQL Enterprise - Rate Limiters
  - name: GraphQL Enterprise - Object Cache
  - name: GraphQL Enterprise - Changesets
  - name: JavaScript Client
  - name: Language Tools
  - name: Testing
  - name: Other
---

<h1>Guides</h1>
<div class="guides-toc">
  <ul>
    {% for section in page.sections %}
      <li>
        <a href="#{{ section.name | slugify }}-guides">{{ section.name }}</a>
      </li>
    {% endfor %}
  </ul>
</div>
<div class="guides">
  {% assign sorted_pages = site.pages | sort: "index" %}
  {% assign pages_with_index = ''|split:'' %}
  {% assign pages_without_index = ''|split:'' %}
  {% for guide in sorted_pages %}
    {% if guide.layout == "guide" %}
      {% if guide.index %}
        {% assign pages_with_index = pages_with_index | push: guide %}
      {% else %}
        {% assign pages_without_index = pages_without_index | push: guide %}
      {% endif %}
    {% endif %}
  {% endfor %}

  {% assign sorted_guides = pages_with_index | concat: pages_without_index %}
  {% for section in page.sections %}
    <div class="guide-section">
      <h2 id="{{ section.name | slugify }}-guides">{{ section.name }}</h2>
      <ul>
        {% for guide in sorted_guides %}
          {% if guide.section == section.name %}
            <li>
              <p>
                <a href="{% if guide.outbound_url %}{{ guide.outbound_url }}{% else %}{{ site.baseurl }}{{ guide.url }}{% endif %}">{{ guide.title }}</a>
                <span class="guide-desc">
                  {{ guide.desc }}
                </span>
              </p>
            </li>
          {% endif %}
        {% endfor %}
      </ul>
    </div>
  {% endfor %}
</div>