2024-05-10 20:49:47 -07:00
|
|
|
// https://vitepress.dev/guide/custom-theme
|
|
|
|
|
import { h } from "vue";
|
|
|
|
|
import type { Theme } from "vitepress";
|
|
|
|
|
import DefaultTheme from "vitepress/theme";
|
|
|
|
|
import "./style.css";
|
2024-06-12 00:02:27 -07:00
|
|
|
import Sponsors from "./Sponsors.vue";
|
2024-06-22 16:46:33 -07:00
|
|
|
import HeroImg from "./HeroImg.vue";
|
2024-05-10 20:49:47 -07:00
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
extends: DefaultTheme,
|
|
|
|
|
Layout: () => {
|
|
|
|
|
return h(DefaultTheme.Layout, null, {
|
|
|
|
|
// https://vitepress.dev/guide/extending-default-theme#layout-slots
|
|
|
|
|
"layout-top": () =>
|
|
|
|
|
h("marquee", { class: "banner", scrollamount: "10" }, [
|
2024-08-01 02:48:08 -07:00
|
|
|
"🚧🚧🚧 This documentation is a work-in-progress! 🚧🚧🚧",
|
2024-05-10 20:49:47 -07:00
|
|
|
]),
|
2024-06-22 16:46:33 -07:00
|
|
|
//"home-hero-image": () => h(HeroImg),
|
2024-06-12 00:02:27 -07:00
|
|
|
"aside-ads-before": () => h(Sponsors),
|
2024-05-10 20:49:47 -07:00
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
enhanceApp({ app, router, siteData }) {
|
|
|
|
|
// ...
|
|
|
|
|
},
|
|
|
|
|
} satisfies Theme;
|