aboutsummaryrefslogtreecommitdiff
path: root/communities/red-right-hand/vitepress/.vitepress/theme/index.js
diff options
context:
space:
mode:
authorAlex Pooley (@zuedev) <zuedev@gmail.com>2026-05-12 18:47:33 +0100
committerAlex Pooley (@zuedev) <zuedev@gmail.com>2026-05-12 18:47:33 +0100
commit3774d5dfd730ab947438ba45dced508602483324 (patch)
tree83baafed9d2476e75bf43f84d3a98567943e600a /communities/red-right-hand/vitepress/.vitepress/theme/index.js
parent98ec34378c1a40803fcd04494518be9b80536355 (diff)
downloadunnamed-group-3774d5dfd730ab947438ba45dced508602483324.tar
unnamed-group-3774d5dfd730ab947438ba45dced508602483324.tar.gz
unnamed-group-3774d5dfd730ab947438ba45dced508602483324.tar.bz2
unnamed-group-3774d5dfd730ab947438ba45dced508602483324.tar.xz
unnamed-group-3774d5dfd730ab947438ba45dced508602483324.zip
add red-right-hand community projects
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);
+ },
+};