Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(playground): use CodeSandbox cloud sandboxes #8576

Merged
merged 2 commits into from
Jan 26, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions admin/new.docusaurus.io/functionUtils/playgroundUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ const PlaygroundConfigs = {
// Do not use this one, see
// https://github.com/codesandbox/codesandbox-client/issues/5683#issuecomment-1023252459
// codesandbox: 'https://codesandbox.io/s/docusaurus',
codesandbox:
'https://codesandbox.io/s/github/facebook/docusaurus/tree/main/examples/classic',
codesandbox: 'https://codesandbox.io/p/sandbox/gallant-lamarr-4t1m4y',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this expected to not have a clean URL?

Will it self-update if we update our examples/classic folder?
(we count on this to make sure the playground is always on the latest version)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just updated the URL to use another sandbox, which will be synced with the repository and with a clear slug.


// Not updated
// stackblitz: 'https://stackblitz.com/fork/docusaurus',
Expand Down
5 changes: 3 additions & 2 deletions website/src/components/Playground/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ const Playgrounds = [
url: 'https://docusaurus.new/codesandbox',
description: (
<Translate id="playground.codesandbox.description">
CodeSandbox is a popular playground solution. Runs Docusaurus in a
remote Docker container.
CodeSandbox is an online code editor and development environment that
allows developers to create, share and collaborate on web development
projects in a browser-based environment
</Translate>
),
},
Expand Down
Binary file modified website/static/img/playgrounds/codesandbox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.