FMHYedit/.vitepress/theme/index.ts

18 lines
446 B
TypeScript
Raw Normal View History

2023-10-26 21:04:41 +00:00
import { h } from "vue";
2023-10-31 20:40:38 +00:00
import { type Theme, inBrowser } from "vitepress";
2023-10-26 21:04:41 +00:00
import DefaultTheme from "vitepress/theme";
2023-11-01 18:56:02 +00:00
import Sidebar from "./components/SidebarPane.vue";
2023-10-26 21:04:41 +00:00
import "./style.css";
2023-10-30 18:32:25 +00:00
import "uno.css";
2023-10-31 20:40:38 +00:00
if (inBrowser) import("./pwa");
2023-10-26 19:12:13 +00:00
export default {
Layout: () => {
return h(DefaultTheme.Layout, null, {
2023-11-01 18:56:02 +00:00
"sidebar-nav-before": () => h(Sidebar),
2023-10-26 21:04:41 +00:00
});
2023-10-26 19:12:13 +00:00
},
2023-10-31 20:40:38 +00:00
enhanceApp({ app, router, siteData }) { },
2023-10-26 21:04:41 +00:00
} satisfies Theme;