feat: add initial OpenWiki structure with custom theme and scripts

This commit is contained in:
2026-06-02 13:20:51 +08:00
parent b9bbcf131e
commit 0b4b79a1e6
16 changed files with 489 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import DefaultTheme from "vitepress/theme-without-fonts";
import { installMermaid } from "v-beautiful-mermaid/client";
import Viewer from "./components/Viewer.vue";
import Layout from "./Layout.vue";
import "v-beautiful-mermaid/style.css";
import "./fonts.css";
/** @type {import('vitepress').Theme} */
export default {
extends: DefaultTheme,
Layout,
enhanceApp({ app }) {
installMermaid(app);
app.component("Viewer", Viewer);
},
};