docs(playground): use CodeSandbox cloud sandboxes (#8576)

This commit is contained in:
Danilo Woznica 2023-01-26 10:57:16 +00:00 committed by GitHub
parent a0058f9c5a
commit 58f0327de5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 6 deletions

View file

@ -10,11 +10,8 @@ import type {HandlerEvent, HandlerResponse} from '@netlify/functions';
const CookieName = 'DocusaurusPlaygroundName'; const CookieName = 'DocusaurusPlaygroundName';
const PlaygroundConfigs = { 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: codesandbox:
'https://codesandbox.io/s/github/facebook/docusaurus/tree/main/examples/classic', 'https://codesandbox.io/p/sandbox/github/facebook/docusaurus/tree/main/examples/classic?file=%2FREADME.md',
// Not updated // Not updated
// stackblitz: 'https://stackblitz.com/fork/docusaurus', // stackblitz: 'https://stackblitz.com/fork/docusaurus',

View file

@ -21,8 +21,9 @@ const Playgrounds = [
url: 'https://docusaurus.new/codesandbox', url: 'https://docusaurus.new/codesandbox',
description: ( description: (
<Translate id="playground.codesandbox.description"> <Translate id="playground.codesandbox.description">
CodeSandbox is a popular playground solution. Runs Docusaurus in a CodeSandbox is an online code editor and development environment that
remote Docker container. allows developers to create, share and collaborate on web development
projects in a browser-based environment
</Translate> </Translate>
), ),
}, },

Binary file not shown.

Before

Width:  |  Height:  |  Size: 373 KiB

After

Width:  |  Height:  |  Size: 367 KiB

Before After
Before After