feat: add initial OpenWiki structure with custom theme and scripts
This commit is contained in:
16
openwiki/.vitepress/theme/index.js
Normal file
16
openwiki/.vitepress/theme/index.js
Normal 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);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user