Skip to content

Commit 8e80187

Browse files
authored
repo sync
2 parents 4828454 + 300bdb6 commit 8e80187

3 files changed

Lines changed: 34 additions & 2 deletions

File tree

content/graphql/overview/explorer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ versions:
77
free-pro-team: '*'
88
enterprise-server: '*'
99
github-ae: '*'
10+
layout: graphql-explorer
1011
---
1112

12-
You can access GitHub's GraphQL Explorer at https://developer.github.com/v4/explorer.

layouts/graphql-explorer.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!doctype html>
2+
<html lang="{{currentLanguage}}">
3+
{% include head %}
4+
5+
<body class="d-lg-flex">
6+
{% include sidebar %}
7+
8+
<main class="width-full">
9+
{% include header %}
10+
11+
<main class="container-xl px-3 px-md-6 my-4 my-lg-4 d-xl-flex">
12+
<article class="markdown-body width-full">
13+
<div class="d-lg-flex flex-justify-between">
14+
<div class="d-flex flex-items-center" style="height: 39px;">
15+
{% include breadcrumbs %}
16+
</div>
17+
</div>
18+
19+
<div class="mt-2">
20+
<div>
21+
<iframe id="graphiql" class="graphql-explorer" scrolling="no" src="{{ graphql.explorerUrl }}">
22+
<p>You must have iframes enabled to use this feature.</p>
23+
</iframe>
24+
</div>
25+
</div>
26+
</article>
27+
</main>
28+
29+
{% include support %}
30+
{% include small-footer %}
31+
</main>
32+
</body>
33+
</html>

middleware/contextualizers/graphql.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const changelog = require('../../lib/graphql/static/changelog')
44
const prerenderedObjects = require('../../lib/graphql/static/prerendered-objects')
55
const allVersions = require('../../lib/all-versions')
66

7-
// TODO do we need to support staging? https://graphql-stage.github.com/explorer
87
const explorerUrl = process.env.NODE_ENV === 'production'
98
? 'https://graphql.github.com/explorer'
109
: 'http://localhost:3000'

0 commit comments

Comments
 (0)