FMHYedit/.vitepress/theme/index.ts
2023-11-02 00:26:02 +05:30

18 lines
446 B
TypeScript

import { h } from "vue";
import { type Theme, inBrowser } from "vitepress";
import DefaultTheme from "vitepress/theme";
import Sidebar from "./components/SidebarPane.vue";
import "./style.css";
import "uno.css";
if (inBrowser) import("./pwa");
export default {
Layout: () => {
return h(DefaultTheme.Layout, null, {
"sidebar-nav-before": () => h(Sidebar),
});
},
enhanceApp({ app, router, siteData }) { },
} satisfies Theme;