repo sync
This commit is contained in:
@@ -7,6 +7,6 @@ versions:
|
|||||||
free-pro-team: '*'
|
free-pro-team: '*'
|
||||||
enterprise-server: '*'
|
enterprise-server: '*'
|
||||||
github-ae: '*'
|
github-ae: '*'
|
||||||
|
layout: graphql-explorer
|
||||||
---
|
---
|
||||||
|
|
||||||
You can access GitHub's GraphQL Explorer at https://developer.github.com/v4/explorer.
|
|
||||||
|
|||||||
33
layouts/graphql-explorer.html
Normal file
33
layouts/graphql-explorer.html
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="{{currentLanguage}}">
|
||||||
|
{% include head %}
|
||||||
|
|
||||||
|
<body class="d-lg-flex">
|
||||||
|
{% include sidebar %}
|
||||||
|
|
||||||
|
<main class="width-full">
|
||||||
|
{% include header %}
|
||||||
|
|
||||||
|
<main class="container-xl px-3 px-md-6 my-4 my-lg-4 d-xl-flex">
|
||||||
|
<article class="markdown-body width-full">
|
||||||
|
<div class="d-lg-flex flex-justify-between">
|
||||||
|
<div class="d-flex flex-items-center" style="height: 39px;">
|
||||||
|
{% include breadcrumbs %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="mt-2">
|
||||||
|
<div>
|
||||||
|
<iframe id="graphiql" class="graphql-explorer" scrolling="no" src="{{ graphql.explorerUrl }}">
|
||||||
|
<p>You must have iframes enabled to use this feature.</p>
|
||||||
|
</iframe>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
{% include support %}
|
||||||
|
{% include small-footer %}
|
||||||
|
</main>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -4,7 +4,6 @@ const changelog = require('../../lib/graphql/static/changelog')
|
|||||||
const prerenderedObjects = require('../../lib/graphql/static/prerendered-objects')
|
const prerenderedObjects = require('../../lib/graphql/static/prerendered-objects')
|
||||||
const allVersions = require('../../lib/all-versions')
|
const allVersions = require('../../lib/all-versions')
|
||||||
|
|
||||||
// TODO do we need to support staging? https://graphql-stage.github.com/explorer
|
|
||||||
const explorerUrl = process.env.NODE_ENV === 'production'
|
const explorerUrl = process.env.NODE_ENV === 'production'
|
||||||
? 'https://graphql.github.com/explorer'
|
? 'https://graphql.github.com/explorer'
|
||||||
: 'http://localhost:3000'
|
: 'http://localhost:3000'
|
||||||
|
|||||||
Reference in New Issue
Block a user