diff --git a/apps/website/docusaurus.config.js b/apps/website/docusaurus.config.js index 9e623d2..3bfae52 100644 --- a/apps/website/docusaurus.config.js +++ b/apps/website/docusaurus.config.js @@ -93,7 +93,7 @@ const config = { items: [ { label: "Tutorial", - to: "/docs/intro", + to: "/docs/overview", }, ], }, diff --git a/apps/website/src/pages/playground.md b/apps/website/src/pages/playground.md index 3535c28..b417f8d 100644 --- a/apps/website/src/pages/playground.md +++ b/apps/website/src/pages/playground.md @@ -1,9 +1,4 @@ -import Playground from "@site/src/components/Playground"; -import CoreSwitcher from "@site/src/components/Playground/CoreSwitcher"; -import FileSystemManager from -"@site/src/components/Playground/Workspace/FileSystemManager"; -import Editor from -"@site/src/components/Playground/Workspace/Editor"; +import BrowserOnly from '@docusaurus/BrowserOnly'; import MuiThemeProvider from "@site/src/components/common/MuiThemeProvider"; import ThemedButton from "@site/src/components/common/ThemedButton"; import ThemedIconButton from "@site/src/components/common/ThemedIconButton"; @@ -26,7 +21,12 @@ development! ::: - + + {() => { + const Playground = require('@site/src/components/Playground').default; + return + }} +
@@ -48,7 +48,12 @@ The assets are downloaded automatically when you enter the Playground. You can choose to use multithreading version instead by click on the switch: - + + {() => { + const CoreSwitcher = require('@site/src/components/Playground/CoreSwitcher').default; + return ; + }} + #### Load files to in-memory File System @@ -58,16 +63,23 @@ System to make sure these files can be consumed by the ffmpeg.wasm APIs:
- + + {() => { + const FileSystemManager = require('@site/src/components/Playground/Workspace/FileSystemManager').default; + return ( + + ); + }} +
@@ -92,7 +104,14 @@ and hit Run afterward:
- + + {() => { + const Editor = require('@site/src/components/Playground/Workspace/Editor').default; + return ( + + ); + }} +