aboutsummaryrefslogtreecommitdiff
path: root/communities/red-right-hand/vitepress/.vitepress/config.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/config.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/config.js')
-rw-r--r--communities/red-right-hand/vitepress/.vitepress/config.js131
1 files changed, 131 insertions, 0 deletions
diff --git a/communities/red-right-hand/vitepress/.vitepress/config.js b/communities/red-right-hand/vitepress/.vitepress/config.js
new file mode 100644
index 0000000..34fde21
--- /dev/null
+++ b/communities/red-right-hand/vitepress/.vitepress/config.js
@@ -0,0 +1,131 @@
+import { withPwa } from "@vite-pwa/vitepress";
+import { defineConfig } from "vitepress";
+
+import { tabsMarkdownPlugin } from "vitepress-plugin-tabs";
+
+const handbookLinkItems = [
+ { text: "Introduction", link: "/handbook/" },
+ { text: "Charter", link: "/handbook/charter" },
+ { text: "Manifesto", link: "/handbook/manifesto" },
+ { text: "Behind the Name", link: "/handbook/behind-the-name" },
+ { text: "Ranks", link: "/handbook/ranks" },
+ { text: "Fleet Composition", link: "/handbook/fleet-composition" },
+];
+
+// https://vitepress.dev/reference/site-config
+export default withPwa(
+ defineConfig({
+ lang: "en-GB",
+
+ srcDir: "markdown",
+
+ title: "Red Right Hand Vitepress",
+ description: "CuntCuntCunt",
+
+ sitemap: {
+ hostname: "https://vitepress.red-right-hand.unnamed.group",
+ },
+
+ markdown: {
+ image: {
+ lazyLoading: true,
+ },
+ math: true,
+ config(md) {
+ md.use(tabsMarkdownPlugin);
+ },
+ },
+
+ themeConfig: {
+ // https://vitepress.dev/reference/default-theme-config
+ nav: [
+ { text: "Home", link: "/" },
+ {
+ text: "Handbook",
+ items: handbookLinkItems,
+ },
+ { text: "Databank", link: "/databank/index" },
+ ],
+
+ sidebar: {
+ "/handbook/": [
+ {
+ text: "Handbook",
+ items: handbookLinkItems,
+ },
+ ],
+ },
+
+ socialLinks: [
+ {
+ icon: "github",
+ link: "https://github.com/zuedev/red-right-hand/tree/main/projects/vitepress",
+ },
+ ],
+
+ search: {
+ provider: "local",
+ },
+
+ editLink: {
+ pattern:
+ "https://github.com/zuedev/red-right-hand/edit/main/projects/vitepress/:path",
+ },
+
+ lastUpdated: true,
+
+ footer: {
+ message:
+ "This site is not endorsed by or affiliated with the Cloud Imperium or Roberts Space Industries group of companies. All game content and materials are copyright Cloud Imperium Rights LLC and Cloud Imperium Rights Ltd.. Star Citizen, Squadron 42, Roberts Space Industries®, and Cloud Imperium® are registered trademarks of Cloud Imperium Rights LLC. All rights reserved.",
+ copyright:
+ "All other content is dedicated to the public domain under the <a href='https://unlicense.org/'>Unlicense</a>.",
+ },
+ },
+
+ head: [
+ ["link", { rel: "icon", href: "/logo.png" }],
+ ["link", { rel: "preconnect", href: "https://fonts.googleapis.com" }],
+ [
+ "link",
+ {
+ rel: "preconnect",
+ href: "https://fonts.gstatic.com",
+ crossorigin: "",
+ },
+ ],
+ [
+ "link",
+ {
+ href: "https://fonts.googleapis.com/css2?family=Inter&display=swap",
+ rel: "stylesheet",
+ },
+ ],
+ [
+ "link",
+ {
+ href: "https://fonts.googleapis.com/css2?family=Fira+Code&display=swap",
+ rel: "stylesheet",
+ },
+ ],
+ // [
+ // "script",
+ // { id: "register-sw" },
+ // `;(() => {
+ // if ('serviceWorker' in navigator) {
+ // navigator.serviceWorker.register('/sw.js')
+ // }
+ // })()`,
+ // ],
+ ],
+
+ pwa: {
+ strategies: "generateSW", // <== if omitted, defaults to `generateSW`
+ workbox: {
+ /* your workbox configuration if any */
+ },
+ experimental: {
+ includeAllowlist: true,
+ },
+ },
+ }),
+);