1
0
mirror of synced 2025-12-19 18:10:59 -05:00

repo sync

This commit is contained in:
Octomerger Bot
2020-12-10 08:57:38 -08:00
committed by GitHub
3 changed files with 34 additions and 2 deletions

View File

@@ -7,6 +7,6 @@ versions:
free-pro-team: '*'
enterprise-server: '*'
github-ae: '*'
layout: graphql-explorer
---
You can access GitHub's GraphQL Explorer at https://developer.github.com/v4/explorer.

View 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>

View File

@@ -4,7 +4,6 @@ const changelog = require('../../lib/graphql/static/changelog')
const prerenderedObjects = require('../../lib/graphql/static/prerendered-objects')
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'
? 'https://graphql.github.com/explorer'
: 'http://localhost:3000'