Add VitePress docs site with MoonBit highlighting

This commit is contained in:
Nanaloveyuki
2026-06-14 15:17:25 +08:00
parent dfae044f75
commit a0e09fb30f
15 changed files with 2649 additions and 4 deletions
+17
View File
@@ -0,0 +1,17 @@
import DefaultTheme from 'vitepress/theme'
import type { Theme } from 'vitepress'
import ApiOverview from './components/ApiOverview.vue'
import HomeDocHub from './components/HomeDocHub.vue'
import './custom.css'
const theme: Theme = {
extends: DefaultTheme,
enhanceApp({ app }) {
app.component('ApiOverview', ApiOverview)
app.component('HomeDocHub', HomeDocHub)
},
}
export default theme