Skip to content

Commit 85edb9e

Browse files
authored
add stylesheet link to cdn example (#3386)
1 parent b0b27ab commit 85edb9e

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed

examples/graphiql-cdn/index.html

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
height: 100vh;
2222
}
2323
</style>
24-
2524
<!--
2625
This GraphiQL example depends on Promise and fetch, which are available in
2726
modern browsers, but can be "polyfilled" for older browsers.
@@ -37,20 +36,28 @@
3736
crossorigin
3837
src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"
3938
></script>
39+
<!--
40+
These two files can be found in the npm module, however you may wish to
41+
copy them directly into your environment, or perhaps include them in your
42+
favored resource bundler.
43+
-->
4044
<script
4145
src="https://unpkg.com/graphiql/graphiql.min.js"
4246
type="application/javascript"
4347
></script>
48+
<link rel="stylesheet" href="https://unpkg.com/graphiql/graphiql.min.css" />
49+
<!--
50+
These are imports for the GraphIQL Explorer plugin.
51+
-->
4452
<script
4553
src="https://unpkg.com/@graphiql/plugin-explorer/dist/index.umd.js"
4654
crossorigin
4755
></script>
48-
<!--
49-
These two files can be found in the npm module, however you may wish to
50-
copy them directly into your environment, or perhaps include them in your
51-
favored resource bundler.
52-
-->
53-
<link rel="stylesheet" href="https://unpkg.com/graphiql/graphiql.min.css" />
56+
57+
<link
58+
rel="stylesheet"
59+
href="https://unpkg.com/@graphiql/plugin-explorer/dist/style.css"
60+
/>
5461
</head>
5562

5663
<body>

packages/graphiql-plugin-code-exporter/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,6 @@ function GraphiQLWithExplorer() {
100100

101101
## CDN bundles
102102

103-
You can also use this plugin when using the
104-
[CDN bundle](../../examples/graphiql-cdn) to render GraphiQL. Check out the
105-
[example HTML file](examples/index.html) that shows how you can do this.
103+
You can also use this plugin with `unpkg`, `jsdelivr`, and other CDNs.
104+
105+
See the [example HTML file](examples/index.html) for this plugin

packages/graphiql-plugin-explorer/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ return (
4949

5050
## CDN bundles
5151

52-
You can also use add this plugin when using the
53-
[CDN bundle](../../examples/graphiql-cdn) to render GraphiQL. Check out the
54-
[example HTML file](examples/index.html) that shows how you can do this.
52+
You can also use this plugin with `unpkg`, `jsdelivr`, and other CDNs.
53+
54+
See the [example HTML file](examples/index.html) for this plugin

0 commit comments

Comments
 (0)