mirror of
https://github.com/tale/headplane.git
synced 2026-07-26 07:48:14 +00:00
37 lines
859 B
TypeScript
37 lines
859 B
TypeScript
import type { Theme } from "vitepress";
|
|
import DefaultTheme from "vitepress/theme";
|
|
import { h } from "vue";
|
|
|
|
import "./custom.css";
|
|
|
|
const beta = __HEADPLANE_BETA_DOCS__ ?? false;
|
|
|
|
export default {
|
|
extends: DefaultTheme,
|
|
Layout() {
|
|
return h(DefaultTheme.Layout, null, {
|
|
"layout-top": () =>
|
|
beta
|
|
? h(
|
|
"div",
|
|
{
|
|
class: "beta-banner",
|
|
},
|
|
[
|
|
"You are currently viewing the ",
|
|
h("strong", "beta"),
|
|
" documentation for Headplane. ",
|
|
h(
|
|
"a",
|
|
{
|
|
href: "https://headplane.net",
|
|
},
|
|
"Go to the stable docs →",
|
|
),
|
|
],
|
|
)
|
|
: null,
|
|
});
|
|
},
|
|
} satisfies Theme;
|