Skip to content

Commit bf28f54

Browse files
authored
Merge pull request #7942 from apollographql/docs/fix-codesandbox-buttons
docs: standardize ButtonLinks
2 parents 4afa612 + 216d2c9 commit bf28f54

File tree

6 files changed

+29
-50
lines changed

6 files changed

+29
-50
lines changed

.github/workflows/docs-publish.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/source/data/subscriptions.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -397,12 +397,12 @@ Use `withFilter` to make sure clients get exactly the subscription updates they
397397

398398
An example server is available on [GitHub](https://github.com/apollographql/docs-examples/blob/main/apollo-server/v4/subscriptions-graphql-ws/src/index.ts) and CodeSandbox:
399399

400-
<a href="https://codesandbox.io/s/github/apollographql/docs-examples/tree/main/apollo-server/v4/subscriptions-graphql-ws?fontsize=14&hidenavigation=1&initialpath=%2Fgraphql&theme=dark">
401-
<img
402-
alt="Edit server-subscriptions-as4"
403-
src="https://codesandbox.io/static/img/play-codesandbox.svg"
404-
/>
405-
</a>
400+
<ButtonLink
401+
href="https://codesandbox.io/s/github/apollographql/docs-examples/tree/main/apollo-server/v4/subscriptions-graphql-ws?fontsize=14&hidenavigation=1&initialpath=%2Fgraphql&theme=dark"
402+
size="lg"
403+
>
404+
Edit in CodeSandbox
405+
</ButtonLink>
406406

407407
The server exposes one subscription (`numberIncremented`) that returns an integer that's incremented on the server every second. Here's an example subscription that you can run against your server:
408408

docs/source/index.mdx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ title: Introduction to Apollo Server
2626

2727
#### Ready to try it out?
2828

29-
<div align="center">
30-
<ButtonLink href="/apollo-server/getting-started" size="lg">
31-
Get started!
32-
</ButtonLink>
33-
</div>
29+
<ButtonLink href="/apollo-server/getting-started" size="lg">
30+
Get started!
31+
</ButtonLink>

docs/source/integrations/mern.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,14 @@ You should see your records appear in the **Response** panel.
236236

237237
## Complete example
238238

239-
You can view and fork the complete server example on Code Sandbox:
240-
241-
<a href="https://codesandbox.io/s/github/apollographql/docs-examples/tree/main/apollo-server/v4/mern-stack?fontsize=14&hidenavigation=1&theme=dark">
242-
<img
243-
alt="Edit server-getting-started"
244-
src="https://codesandbox.io/static/img/play-codesandbox.svg"
245-
/>
246-
</a>
239+
You can view and fork the complete server example on CodeSandbox:
240+
241+
<ButtonLink
242+
href="https://codesandbox.io/s/github/apollographql/docs-examples/tree/main/apollo-server/v4/mern-stack?fontsize=14&hidenavigation=1&theme=dark"
243+
size="lg"
244+
>
245+
Edit in CodeSandbox
246+
</ButtonLink>
247247

248248
## Next steps
249249

docs/source/testing/testing.mdx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,9 @@ describe('e2e demo', () => {
179179

180180
You can also view and fork this complete example on CodeSandbox:
181181

182-
<a href="https://codesandbox.io/s/github/apollographql/docs-examples/tree/main/apollo-server/v4/integration-testing?fontsize=14&hidenavigation=1&theme=dark">
183-
<img
184-
alt="Edit integration-testing"
185-
src="https://codesandbox.io/static/img/play-codesandbox.svg"
186-
/>
187-
</a>
188-
<br />
182+
<ButtonLink
183+
href="https://codesandbox.io/s/github/apollographql/docs-examples/tree/main/apollo-server/v4/integration-testing?fontsize=14&hidenavigation=1&theme=dark"
184+
size="lg"
185+
>
186+
Edit in CodeSandbox
187+
</ButtonLink>

docs/source/workflow/generate-types.mdx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -237,12 +237,11 @@ const resolvers: Resolvers = {
237237

238238
Check out our example using Apollo Server with generated types on CodeSandbox:
239239

240-
<a href="https://codesandbox.io/s/github/apollographql/docs-examples/tree/main/apollo-server/v4/generated-types?fontsize=14&hidenavigation=1&initialpath=%2Fgraphql&theme=dark">
241-
<img
242-
alt="Edit server-generated-types-as4"
243-
src="https://codesandbox.io/static/img/play-codesandbox.svg"
244-
/>
245-
</a>
246-
<br/>
240+
<ButtonLink
241+
href="https://codesandbox.io/s/github/apollographql/docs-examples/tree/main/apollo-server/v4/generated-types?fontsize=14&hidenavigation=1&initialpath=%2Fgraphql&theme=dark"
242+
size="lg"
243+
>
244+
Edit in CodeSandbox
245+
</ButtonLink>
247246

248247
See [GraphQL Code Generator's docs](https://www.the-guild.dev/graphql/codegen/docs/guides/further-reading) for further guidance on the different features and integrations it supports.

0 commit comments

Comments
 (0)