Files
book/.vitepress/theme/index.ts
T
xuyueandClaude Opus 5.5 2db1fa5d0d
Deploy / deploy (build, debian, 22) (push) Canceled after 0s
Deploy / deploy (build:staging, school, 8822) (push) Canceled after 0s
remove judge0 code editor, upgrade vitepress to v2
- Drop the <editor> component, Judge0 client and CodeMirror themes/deps
- Pin markdown-it-mathjax3 to ^4 to satisfy vitepress peer dependency
- Upgrade vitepress 1.6.4 -> 2.0.0-alpha.20

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 16:18:37 +08:00

13 lines
340 B
TypeScript

import type { Theme } from "vitepress"
import DefaultTheme from "vitepress/theme"
import BVideo from "./components/BVideo.vue"
import Author from "./components/Author.vue"
export default {
extends: DefaultTheme,
async enhanceApp({ app }) {
app.component("bvideo", BVideo)
app.component("author", Author)
},
} satisfies Theme