From a4f24446540b54e54b22e47c185bfd91f3b29777 Mon Sep 17 00:00:00 2001 From: Sarah Schneider Date: Tue, 8 Dec 2020 13:38:37 -0500 Subject: [PATCH] new Explorer layout with iFrame --- content/graphql/overview/explorer.md | 2 +- layouts/graphql-explorer.html | 33 +++++++++++++++++++++++++++ middleware/contextualizers/graphql.js | 1 - 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 layouts/graphql-explorer.html diff --git a/content/graphql/overview/explorer.md b/content/graphql/overview/explorer.md index f87b12b44eef..74540b78a43a 100644 --- a/content/graphql/overview/explorer.md +++ b/content/graphql/overview/explorer.md @@ -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. diff --git a/layouts/graphql-explorer.html b/layouts/graphql-explorer.html new file mode 100644 index 000000000000..3ce766324195 --- /dev/null +++ b/layouts/graphql-explorer.html @@ -0,0 +1,33 @@ + + + {% include head %} + + + {% include sidebar %} + +
+ {% include header %} + +
+
+
+
+ {% include breadcrumbs %} +
+
+ +
+
+ +
+
+
+
+ + {% include support %} + {% include small-footer %} +
+ + diff --git a/middleware/contextualizers/graphql.js b/middleware/contextualizers/graphql.js index 34fffaf1e245..b5a1f7cc202d 100644 --- a/middleware/contextualizers/graphql.js +++ b/middleware/contextualizers/graphql.js @@ -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'