mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 07:37:19 +02:00
docs: add TypeScript playgrounds to docusaurus.new + Playground page (#8723)
This commit is contained in:
parent
e78a6a6610
commit
62aba771df
4 changed files with 41 additions and 4 deletions
12
admin/new.docusaurus.io/functions/codesandbox-ts.ts
Normal file
12
admin/new.docusaurus.io/functions/codesandbox-ts.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import {createPlaygroundResponse} from '../functionUtils/playgroundUtils';
|
||||
import type {Handler} from '@netlify/functions';
|
||||
|
||||
export const handler: Handler = () =>
|
||||
Promise.resolve(createPlaygroundResponse('codesandbox-ts'));
|
12
admin/new.docusaurus.io/functions/stackblitz-ts.ts
Normal file
12
admin/new.docusaurus.io/functions/stackblitz-ts.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import {createPlaygroundResponse} from '../functionUtils/playgroundUtils';
|
||||
import type {Handler} from '@netlify/functions';
|
||||
|
||||
export const handler: Handler = () =>
|
||||
Promise.resolve(createPlaygroundResponse('stackblitz-ts'));
|
Loading…
Add table
Add a link
Reference in a new issue