mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-23 05:25:53 +08:00
feat(docs): migrate bs docs
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<template>
|
||||
<!-- 'code-options' is a build-in prop, do not edit it -->
|
||||
<Sandbox
|
||||
:rtl="rtl"
|
||||
:template="'vanilla-ts'"
|
||||
:light-theme="lightTheme"
|
||||
:dark-theme="darkTheme"
|
||||
:options="{
|
||||
...props, // do not forget it
|
||||
coderHeight: Number(props.coderHeight),
|
||||
previewHeight: Number(props.previewHeight),
|
||||
showLineNumbers: true,
|
||||
}"
|
||||
:custom-setup="{
|
||||
...props, // do not forget it
|
||||
deps: {
|
||||
yjs: 'latest',
|
||||
'@toeverything/theme': 'latest',
|
||||
'@blocksuite/presets': 'canary',
|
||||
},
|
||||
}"
|
||||
:code-options="codeOptions"
|
||||
>
|
||||
<slot />
|
||||
</Sandbox>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { Sandbox, sandboxProps } from 'vitepress-plugin-sandpack';
|
||||
|
||||
const props = defineProps({
|
||||
...sandboxProps,
|
||||
coderHeight: String,
|
||||
previewHeight: String,
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user