diff --git a/api/.vitepress/config.mts b/api/.vitepress/config.mts
index 345fc2e..3c4455e 100644
--- a/api/.vitepress/config.mts
+++ b/api/.vitepress/config.mts
@@ -51,11 +51,36 @@ export default defineConfig({
description: "The zwoo api documentation",
base: basePath,
locales: createLocales("/api/"),
- head: createCommonHead(basePath),
+ head: [
+ ...createCommonHead(),
+ [
+ "link",
+ {
+ rel: "icon",
+ type: "image/svg+xml",
+ href: basePath + "zwoo_api_docs_simple_none_dark.svg",
+ },
+ ],
+ [
+ "link",
+ {
+ rel: "icon",
+ type: "image/png",
+ href: basePath + "zwoo_api_docs_simple_none_dark.png",
+ },
+ ],
+ ],
themeConfig: {
socialLinks,
...themeConfig,
+ logo: {
+ dark: "/zwoo_api_docs_simple_none_dark.svg",
+ light: "/zwoo_api_docs_simple_none_light.svg",
+ width: 512,
+ height: 512,
+ },
+
nav: [
{ text: "Home", link: "/" },
...concepts,
diff --git a/api/index.md b/api/index.md
index d6cff4a..0a1a383 100644
--- a/api/index.md
+++ b/api/index.md
@@ -5,6 +5,10 @@ layout: home
hero:
name: ZWOO API
tagline: How the zwoo actors are connected.
+ image:
+ light: /zwoo_api_docs_none_light.svg
+ dark: /zwoo_api_docs_none_dark.svg
+ alt: ZWOO dev logo
actions:
- theme: brand
text: Play ZWOO!
@@ -37,3 +41,31 @@ features:
icon: 🚀
---
+
\ No newline at end of file
diff --git a/commonConfig.mts b/commonConfig.mts
index 0dea64c..21a1f1c 100644
--- a/commonConfig.mts
+++ b/commonConfig.mts
@@ -1,4 +1,4 @@
-import { DefaultTheme, UserConfig } from "vitepress";
+import { DefaultTheme, HeadConfig, UserConfig } from "vitepress";
type NonNullable = T extends null | undefined ? never : T;
type ConfigType = NonNullable>;
@@ -7,23 +7,7 @@ type ThemeConfig = NonNullable;
export const ZWOO_URL = "https://zwoo.igd20.de/";
export const ZWOO_DOCS_URL = ZWOO_URL + "docs/";
-export const createCommonHead = (base: string): ConfigType["head"] => [
- [
- "link",
- {
- rel: "icon",
- type: "image/svg+xml",
- href: base + "zwoo_logo_simple_dark.svg",
- },
- ],
- [
- "link",
- {
- rel: "icon",
- type: "image/png",
- href: base + "zwoo_logo_simple_dark.png",
- },
- ],
+export const createCommonHead = (): HeadConfig[] => [
["meta", { name: "theme-color", content: "#0ea5e9" }],
["meta", { property: "og:type", content: "website" }],
["meta", { property: "og:locale", content: "en" }],
@@ -89,10 +73,4 @@ export const themeConfig: ThemeConfig = {
copyright: "Copyright © 2021-present IGD 2.0 UG (haftungsbeschränkt)",
message: "Made with <3 by Fabian Kachlock and the zwoo team.",
},
- logo: {
- dark: "/zwoo_logo_simple_none_dark.svg",
- light: "/zwoo_logo_simple_none_light.svg",
- width: 512,
- height: 512,
- },
};
diff --git a/dev/.vitepress/config.mts b/dev/.vitepress/config.mts
index fcbea1c..8cedb8b 100644
--- a/dev/.vitepress/config.mts
+++ b/dev/.vitepress/config.mts
@@ -15,11 +15,36 @@ export default defineConfig({
description: "The zwoo api documentation",
base: basePath,
locales: createLocales("/dev/"),
- head: createCommonHead(basePath),
+ head: [
+ ...createCommonHead(),
+ [
+ "link",
+ {
+ rel: "icon",
+ type: "image/svg+xml",
+ href: basePath + "zwoo_dev_docs_simple_none_dark.svg",
+ },
+ ],
+ [
+ "link",
+ {
+ rel: "icon",
+ type: "image/png",
+ href: basePath + "zwoo_dev_docs_simple_none_dark.png",
+ },
+ ],
+ ],
themeConfig: {
socialLinks,
...themeConfig,
+ logo: {
+ dark: "/zwoo_dev_docs_simple_none_dark.svg",
+ light: "/zwoo_dev_docs_simple_none_light.svg",
+ width: 512,
+ height: 512,
+ },
+
nav: [createCommonNav(basePath)],
sidebar: [],
},
diff --git a/dev/index.md b/dev/index.md
index cae188e..e43116e 100644
--- a/dev/index.md
+++ b/dev/index.md
@@ -5,6 +5,10 @@ layout: home
hero:
name: ZWOO DEV
tagline: Zwoo developer documentation.
+ image:
+ light: /zwoo_dev_docs_none_light.svg
+ dark: /zwoo_dev_docs_none_dark.svg
+ alt: ZWOO dev logo
actions:
- theme: brand
text: Play ZWOO!
@@ -27,3 +31,31 @@ features:
icon: 🤖
---
+
\ No newline at end of file
diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts
index 171187d..29beb40 100644
--- a/docs/.vitepress/config.mts
+++ b/docs/.vitepress/config.mts
@@ -15,11 +15,36 @@ export default defineConfig({
description: "The zwoo user documentation",
base: "/docs/",
locales: createLocales("/"),
- head: createCommonHead("/docs/"),
+ head: [
+ ...createCommonHead(),
+ [
+ "link",
+ {
+ rel: "icon",
+ type: "image/svg+xml",
+ href: "/docs/zwoo_logo_simple_dark.svg",
+ },
+ ],
+ [
+ "link",
+ {
+ rel: "icon",
+ type: "image/png",
+ href: "/docs/zwoo_logo_simple_dark.png",
+ },
+ ],
+ ],
themeConfig: {
socialLinks,
...themeConfig,
+ logo: {
+ dark: "/zwoo_logo_simple_none_dark.svg",
+ light: "/zwoo_logo_simple_none_light.svg",
+ width: 512,
+ height: 512,
+ },
+
nav: [
{
text: "FAQ",
diff --git a/public/zwoo_api_docs_none_dark.svg b/public/zwoo_api_docs_none_dark.svg
new file mode 100644
index 0000000..0c0e22a
--- /dev/null
+++ b/public/zwoo_api_docs_none_dark.svg
@@ -0,0 +1,48 @@
+
diff --git a/public/zwoo_api_docs_none_light.svg b/public/zwoo_api_docs_none_light.svg
new file mode 100644
index 0000000..7f6b27c
--- /dev/null
+++ b/public/zwoo_api_docs_none_light.svg
@@ -0,0 +1,48 @@
+
diff --git a/public/zwoo_api_docs_simple_none_dark.png b/public/zwoo_api_docs_simple_none_dark.png
new file mode 100644
index 0000000..60ddf7b
Binary files /dev/null and b/public/zwoo_api_docs_simple_none_dark.png differ
diff --git a/public/zwoo_api_docs_simple_none_dark.svg b/public/zwoo_api_docs_simple_none_dark.svg
new file mode 100644
index 0000000..2da62fd
--- /dev/null
+++ b/public/zwoo_api_docs_simple_none_dark.svg
@@ -0,0 +1,23 @@
+
diff --git a/public/zwoo_api_docs_simple_none_light.svg b/public/zwoo_api_docs_simple_none_light.svg
new file mode 100644
index 0000000..81ffb64
--- /dev/null
+++ b/public/zwoo_api_docs_simple_none_light.svg
@@ -0,0 +1,23 @@
+
diff --git a/public/zwoo_dev_docs_none_dark.svg b/public/zwoo_dev_docs_none_dark.svg
new file mode 100644
index 0000000..9bb2167
--- /dev/null
+++ b/public/zwoo_dev_docs_none_dark.svg
@@ -0,0 +1,48 @@
+
diff --git a/public/zwoo_dev_docs_none_light.svg b/public/zwoo_dev_docs_none_light.svg
new file mode 100644
index 0000000..37ef760
--- /dev/null
+++ b/public/zwoo_dev_docs_none_light.svg
@@ -0,0 +1,48 @@
+
diff --git a/public/zwoo_dev_docs_simple_none_dark.png b/public/zwoo_dev_docs_simple_none_dark.png
new file mode 100644
index 0000000..444c0df
Binary files /dev/null and b/public/zwoo_dev_docs_simple_none_dark.png differ
diff --git a/public/zwoo_dev_docs_simple_none_dark.svg b/public/zwoo_dev_docs_simple_none_dark.svg
new file mode 100644
index 0000000..98adce9
--- /dev/null
+++ b/public/zwoo_dev_docs_simple_none_dark.svg
@@ -0,0 +1,23 @@
+
diff --git a/public/zwoo_dev_docs_simple_none_light.svg b/public/zwoo_dev_docs_simple_none_light.svg
new file mode 100644
index 0000000..cb47d4f
--- /dev/null
+++ b/public/zwoo_dev_docs_simple_none_light.svg
@@ -0,0 +1,23 @@
+