From 3774d5dfd730ab947438ba45dced508602483324 Mon Sep 17 00:00:00 2001 From: "Alex Pooley (@zuedev)" Date: Tue, 12 May 2026 18:47:33 +0100 Subject: add red-right-hand community projects --- .../vitepress/.vitepress/theme/index.js | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 communities/red-right-hand/vitepress/.vitepress/theme/index.js (limited to 'communities/red-right-hand/vitepress/.vitepress/theme/index.js') 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); + }, +}; -- cgit v1.2.3