From bb97af42e9b4106fce8977208fe59cc09749e1f9 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 3 Feb 2026 06:36:46 +0000 Subject: Mount CompilerModal in VitePress layout Co-authored-by: dragon-fly --- doc/docs/.vitepress/theme/index.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/docs') diff --git a/doc/docs/.vitepress/theme/index.ts b/doc/docs/.vitepress/theme/index.ts index fd0f640..7234afe 100644 --- a/doc/docs/.vitepress/theme/index.ts +++ b/doc/docs/.vitepress/theme/index.ts @@ -1,4 +1,5 @@ import DefaultTheme from 'vitepress/theme' +import { h } from 'vue' import './custom.css' import CompilerModal from './components/CompilerModal.vue' @@ -7,6 +8,10 @@ import YueDisplay from './components/YueDisplay.vue' export default { extends: DefaultTheme, + Layout: () => + h(DefaultTheme.Layout, null, { + 'layout-bottom': () => h(CompilerModal) + }), enhanceApp({ app }) { app.component('CompilerModal', CompilerModal) app.component('YueCompiler', YueCompiler) -- cgit v1.2.3-55-g6feb