From bcfc78cc85e4bed51e7d780750230b184e189c2d Mon Sep 17 00:00:00 2001
From: Simon Hirtreiter <14137977+simonhir@users.noreply.github.com>
Date: Fri, 20 Dec 2024 11:47:01 +0100
Subject: [PATCH] Bug/docs fix theme and cleanup (#332)
* :memo: docs unify gateway naming
* :memo: docs architecture client instead of users
* :memo: docs make outline deep by default
* :memo: docs use asset server for nav logo
* :bug: docs fix missing css
* :bug: docs fix missing css
* :memo: docs unify gateway naming
* :memo: docs add prettier commands
---
docs/.vitepress/config.mts | 7 +++++--
docs/.vitepress/theme/LhmThemeExtension.vue | 4 +---
docs/.vitepress/theme/logo-lhm.png | Bin 3394 -> 0 bytes
docs/.vitepress/theme/style.css | 21 +++++++++++++++++++-
docs/gateway.md | 2 +-
docs/index.md | 2 +-
docs/overview.md | 6 +++---
docs/package.json | 4 +++-
8 files changed, 34 insertions(+), 12 deletions(-)
delete mode 100644 docs/.vitepress/theme/logo-lhm.png
diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts
index 025a5724..f9e68384 100644
--- a/docs/.vitepress/config.mts
+++ b/docs/.vitepress/config.mts
@@ -23,7 +23,7 @@ const vitepressConfig = defineConfig({
text: "Docs",
items: [
{ text: "Overview", link: "/overview" },
- { text: "API-Gateway", link: "/gateway" },
+ { text: "API gateway", link: "/gateway" },
{ text: "Integrations", link: "/integrations" },
{ text: "Development", link: "/dev" },
],
@@ -31,7 +31,7 @@ const vitepressConfig = defineConfig({
],
sidebar: [
{ text: "Overview", link: "/overview" },
- { text: "API-Gateway", link: "/gateway" },
+ { text: "API gateway", link: "/gateway" },
{
text: "Integrations",
link: "/integrations",
@@ -46,6 +46,9 @@ const vitepressConfig = defineConfig({
],
},
],
+ outline: {
+ level: "deep",
+ },
socialLinks: [
{ icon: "github", link: "https://github.com/it-at-m/refarch" },
],
diff --git a/docs/.vitepress/theme/LhmThemeExtension.vue b/docs/.vitepress/theme/LhmThemeExtension.vue
index 8bacc37a..e988ff92 100644
--- a/docs/.vitepress/theme/LhmThemeExtension.vue
+++ b/docs/.vitepress/theme/LhmThemeExtension.vue
@@ -1,8 +1,6 @@
@@ -14,7 +12,7 @@ const { Layout } = DefaultTheme;
target="_blank"
>
diff --git a/docs/.vitepress/theme/logo-lhm.png b/docs/.vitepress/theme/logo-lhm.png
deleted file mode 100644
index 132d9b3b05d01fd1f5f56b97dd405d48ecee01ad..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 3394
zcmY*bc{tQj7an9AX)I%#RkmixzLYGHvCL#0Q$!0QMPw&xq{v#tPuaH&Ar+NNW@|>U`a?wY&icd4MH0_C>a?U5CUr8_?O1&
z4IF_1XY1CjKo&Uv7U&Ixz%DH<4M03z3Y24a!alP3cswWybXXzah>3~)uMUo7|1?=@
zfCJXX6#sCxgT>?V>}J>s8?`VQ!DJ_lC)YN2$Ky~2Y@vMfyn81L)
z!DO|xu~=FEs{aK6m4$uqR^G1!T4q*nxpt+fZOj0ZrB*AoRBrDRA6CKm_1yV~@`&4aC_`
z&-OvqMz^exM(-pZ{E~))sMhwdFs^;5{=9+Kx8Z0G<}C2A`M9q=vZ5kCtu^~Ztq+zvvN1(dyP|#|8$Y~`PtTm
zd*?1}wt2ENA-s3F+Nk)%A<@S_e_X1Oky5VmIuk_|^j|dmXg#_`f_r%8?i&q$$X-2t
zFymX@bn5q#vz6vY1F_O}FGswO%uV&0^?4*_hbJj!HKxS8Pu4jWd*yQTEx#LTLXTdY
zZ`roJFn51N+jtj7sUhy_9Vh0y!_Ec)^K!;27Ln)!$6a-O3LJ0hcW@}G?SjGhy~reE
z+VR1G%q0`ic8LeE+p%O$88b*^vos%7%Sfa+oRaqCHKedj8Xg-24U!Uy&Lf3sG-Op?
z^U)>mXMdV^t+!i|Ine?SMVsf>)K)^6zJ@D&YK&J^b8My}N3ecr4H
zTV4t?Vw5kI(X&Kty*ie8pb)R_q|$pUs?-+UGN+?&mWj+>?7At%VRsM8XU)cLSJn;c
z`})L^vnq_KJlj|SqB|t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@&WE
za(s1Mc5wwo|JD}O|GvfHTXR81Y{$-*p@&CLh1w_teWIJ6mT0^Fsf~Gc|7>oM+dXf!
zM!G?tYNzkv*PgPE&1`%F48z8rYR7q2?r?C9z<7+6a6P{`#!Y7b
z{9mfUX_>B+dyfMz&lag_qdG|6drokf=%UBh?>$yLE38i&VgU-GqY
z(e_9`KetGNo_@HcbZTzRQEZ80dq
zTMSB0hpgeu@ML~sW0qT);fjhh)Tw1`)fjcR@Nu$JQK7+E$AeNkIQ|S@CQ9hNfPb=j
z)UJ!k&4b+Im)sIH-y`JthZFW4$qOiK$w~dnC|QZtR#@YT#n5s6Dq$*fEcXk8*WY!Zr?>Mc<1tw&V&`fV+e
z<9$}65AkHpC$uLJj?R#u3hACzoLQZNe!Eh7e%?k3Nsu*m=j`Jf`PyBuFrsYcbm!)G
z6G%(R@XQu;0_o5e(ImoKi~H&gIXh(#h~toUC;eS}+9y@T{gaQyO6?o?BhS|qyPGNw
z?Y=_fm){wkjJ84Y8WQi>l*2vfVjh(VXB5IcYP)}!Kw|`R75lyXd+aNQDg>?~xfTggW)D|+0$fZ8
zyw&8i7C3`1pRds7d8nIR!>!`{UbRRjF{<-)&st#7D8cqxK$aS=mq;9Sn(1$GpsHqz
zd~1l?c1&VgBvFGBw;smj8I35(6LI9#zKsrbzSb0iwapee7&U7|mU0~XFgs%0zNR5Y
zd3|>!W@5L%?~}>grCd*9_LZV2P?@xU5E98g7a_e@VdZNpYuABd`rds
z!kzi>i+(>lJRGW25oycc%f?^<&Y~D~($)f6{trc^k~B|}!h@DG7^$X(b{)n2BAg|b
vmYs)!&*Fas+`RcYfpe(duVrs}D~I^QJqXdyiaOvgCX8%qO}e$m<@|pDWD{D9
diff --git a/docs/.vitepress/theme/style.css b/docs/.vitepress/theme/style.css
index 50969f5a..f53dcf9b 100644
--- a/docs/.vitepress/theme/style.css
+++ b/docs/.vitepress/theme/style.css
@@ -1,8 +1,27 @@
:root {
- --muc-logo-filter: invert(0);
+ --muc-logo-filter: invert(0); /* Sets the default LHM logo color to black */
}
+/* Dark mode specific configurations */
+.dark {
+ --muc-logo-filter: invert(1); /* Sets the LHM logo color to white */
+}
+
+/* Enables footer on all pages instead of only the home page */
footer.VPFooter {
display: block !important;
z-index: 100 !important;
}
+
+@media all and (max-width: 450px) {
+ /* Hides the logo text on mobile phones */
+ .VPNav div.logo a {
+ overflow: hidden;
+ width: 23px;
+ }
+ /* Fixes compression of logo on phone screens */
+ .VPNav div.logo a img {
+ object-fit: cover;
+ object-position: left;
+ }
+}
diff --git a/docs/gateway.md b/docs/gateway.md
index 0b4663d3..02f8ebc5 100644
--- a/docs/gateway.md
+++ b/docs/gateway.md
@@ -1 +1 @@
-# API-Gateway
+# API gateway
diff --git a/docs/index.md b/docs/index.md
index 99adccd1..9d4edd76 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -14,7 +14,7 @@ hero:
text: Templates
link: https://refarch-templates.oss.muenchen.de
- theme: alt
- text: API-Gateway
+ text: API gateway
link: /gateway
- theme: alt
text: Integrations
diff --git a/docs/overview.md b/docs/overview.md
index b7873e3f..f5c9f9b9 100644
--- a/docs/overview.md
+++ b/docs/overview.md
@@ -18,8 +18,8 @@ Besides that there can be cases where modular frontends through web components,
```mermaid
flowchart LR
- u([Users])
- g[API-Gateway]
+ u([Client])
+ g[API gateway]
f[Frontend]
b[Backend]
w[Web component]
@@ -35,7 +35,7 @@ The API gateway is a ready-to-use component and the only exposed interface for a
It manages all requests and routes them to the respective development components like frontend and backend.
Besides that, it also handles cross-cutting concepts like authentication using a SSO.
-See [API-Gateway](./gateway.md) for further information.
+See [API gateway](./gateway.md) for further information.
### Frontend
diff --git a/docs/package.json b/docs/package.json
index 5b7aeecb..65c75bc3 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -2,7 +2,9 @@
"scripts": {
"dev": "vitepress dev",
"build": "vitepress build",
- "preview": "vitepress preview"
+ "preview": "vitepress preview",
+ "lint": "prettier . --check",
+ "fix": "prettier . --write"
},
"engines": {
"node": ">=20 <=22"