aboutsummaryrefslogtreecommitdiff
path: root/communities/red-right-hand/vitepress/.vitepress/theme/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'communities/red-right-hand/vitepress/.vitepress/theme/index.js')
-rw-r--r--communities/red-right-hand/vitepress/.vitepress/theme/index.js37
1 files changed, 37 insertions, 0 deletions
diff --git a/communities/red-right-hand/vitepress/.vitepress/theme/index.js b/communities/red-right-hand/vitepress/.vitepress/theme/index.js
new file mode 100644
index 0000000..f8f80fc
--- /dev/null
+++ b/communities/red-right-hand/vitepress/.vitepress/theme/index.js
@@ -0,0 +1,37 @@
+// https://vitepress.dev/guide/custom-theme
+import { h } from "vue";
+import DefaultTheme from "vitepress/theme";
+import "./style.css";
+
+import ReloadPrompt from "./components/ReloadPrompt.vue";
+
+import { enhanceAppWithTabs } from "vitepress-plugin-tabs/client";
+
+/** @type {import('vitepress').Theme} */
+export default {
+ extends: DefaultTheme,
+ Layout: () => {
+ return h(DefaultTheme.Layout, null, {
+ // https://vitepress.dev/guide/extending-default-theme#layout-slots
+ "doc-before": () =>
+ h(
+ "p",
+ {
+ style: {
+ backgroundColor: "yellow",
+ color: "#111",
+ padding: "0.75rem 1rem",
+ fontWeight: "600",
+ display: "block",
+ marginBottom: "1rem",
+ },
+ },
+ "WARNING: This documentation is very early and incomplete. It may contain inaccurate or missing content. Do not rely on this information yet. For official information, please refer to the classified channels or contact your commanding officer.",
+ ),
+ "layout-bottom": () => h(ReloadPrompt),
+ });
+ },
+ enhanceApp({ app, router, siteData }) {
+ enhanceAppWithTabs(app);
+ },
+};