Skip to content

Commit

Permalink
Bug/docs fix theme and cleanup (#332)
Browse files Browse the repository at this point in the history
* 📝 docs unify gateway naming

* 📝 docs architecture client instead of users

* 📝 docs make outline deep by default

* 📝 docs use asset server for nav logo

* 🐛 docs fix missing css

* 🐛 docs fix missing css

* 📝 docs unify gateway naming

* 📝 docs add prettier commands
  • Loading branch information
simonhir authored Dec 20, 2024
1 parent c42b6a4 commit bcfc78c
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 12 deletions.
7 changes: 5 additions & 2 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ 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" },
],
},
],
sidebar: [
{ text: "Overview", link: "/overview" },
{ text: "API-Gateway", link: "/gateway" },
{ text: "API gateway", link: "/gateway" },
{
text: "Integrations",
link: "/integrations",
Expand All @@ -46,6 +46,9 @@ const vitepressConfig = defineConfig({
],
},
],
outline: {
level: "deep",
},
socialLinks: [
{ icon: "github", link: "https://github.com/it-at-m/refarch" },
],
Expand Down
4 changes: 1 addition & 3 deletions docs/.vitepress/theme/LhmThemeExtension.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<script setup>
import DefaultTheme from "vitepress/theme";
import lhmLogo from "./logo-lhm.png";
const { Layout } = DefaultTheme;
</script>
<template>
Expand All @@ -14,7 +12,7 @@ const { Layout } = DefaultTheme;
target="_blank"
>
<img
:src="lhmLogo"
src="https://assets.muenchen.de/logos/lhm/logo-lhm-muenchen.svg"
alt="Logo Landeshauptstadt München"
/>
</a>
Expand Down
Binary file removed docs/.vitepress/theme/logo-lhm.png
Binary file not shown.
21 changes: 20 additions & 1 deletion docs/.vitepress/theme/style.css
Original file line number Diff line number Diff line change
@@ -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;
}
}
2 changes: 1 addition & 1 deletion docs/gateway.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# API-Gateway
# API gateway
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions docs/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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

Expand Down
4 changes: 3 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit bcfc78c

Please sign in to comment.