generated from it-at-m/oss-repository-en-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/docs init structure and landingpage (#323)
* ✨ docs add prettier * ✨ docs add favicon * ✨ docs add edit link * ✨ docs init content structure * ✨ docs lhm theme * ✨ docs display footer on docs pages * ✨ docs add footer
- Loading branch information
Showing
17 changed files
with
789 additions
and
534 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dist | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"@muenchen/prettier-codeformat" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,65 @@ | ||
import { defineConfig } from "vitepress"; | ||
import { withMermaid } from "vitepress-plugin-mermaid"; | ||
import { withMermaid } from "vitepress-plugin-mermaid"; // https://vitepress.dev/reference/site-config | ||
|
||
// https://vitepress.dev/reference/site-config | ||
const vitepressConfig = defineConfig({ | ||
title: "Refarch Vitepress init", | ||
title: "RefArch", | ||
description: "Documentation for the RefArch", | ||
head: [ | ||
[ | ||
"link", | ||
{ | ||
rel: "icon", | ||
href: `https://assets.muenchen.de/logos/lhm/icon-lhm-muenchen-32.png`, | ||
}, | ||
], | ||
], | ||
lastUpdated: true, | ||
themeConfig: { | ||
// https://vitepress.dev/reference/default-theme-config | ||
nav: [ | ||
{ text: 'Home', link: '/' }, | ||
{ text: 'Examples', link: '/markdown-examples' } | ||
{ text: "Home", link: "/" }, | ||
{ | ||
text: "Docs", | ||
items: [ | ||
{ text: "Overview", link: "/overview" }, | ||
{ text: "API-Gateway", link: "/gateway" }, | ||
{ text: "Integrations", link: "/integrations" }, | ||
{ text: "Development", link: "/dev" }, | ||
], | ||
}, | ||
], | ||
sidebar: [ | ||
{ text: "Overview", link: "/overview" }, | ||
{ text: "API-Gateway", link: "/gateway" }, | ||
{ | ||
text: "Integrations", | ||
link: "/integrations", | ||
items: [{ text: "S3", link: "/integrations/s3" }], | ||
}, | ||
{ | ||
text: 'Examples', | ||
text: "Development", | ||
link: "/dev", | ||
items: [ | ||
{ text: 'Markdown Examples', link: '/markdown-examples' }, | ||
{ text: 'Runtime API Examples', link: '/api-examples' } | ||
] | ||
} | ||
{ text: "Tools", link: "/dev/tools" }, | ||
{ text: "Stack", link: "/dev/stack" }, | ||
], | ||
}, | ||
], | ||
socialLinks: [ | ||
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' } | ||
{ icon: "github", link: "https://github.com/it-at-m/refarch" }, | ||
], | ||
editLink: { | ||
pattern: "https://github.com/it-at-m/refarch/blob/main/docs/:path", | ||
text: "View this page on GitHub", | ||
}, | ||
search: { | ||
provider: 'local' | ||
} | ||
} | ||
provider: "local", | ||
}, | ||
footer: { | ||
message: `<a href="https://opensource.muenchen.de/impress.html">Impress and Contact</a>`, | ||
}, | ||
}, | ||
}); | ||
|
||
export default withMermaid(vitepressConfig); | ||
export default withMermaid(vitepressConfig); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<script setup> | ||
import DefaultTheme from "vitepress/theme"; | ||
import lhmLogo from "./logo-lhm.png"; | ||
const { Layout } = DefaultTheme; | ||
</script> | ||
<template> | ||
<Layout> | ||
<template #nav-bar-content-after> | ||
<div class="logo"> | ||
<a | ||
href="https://www.muenchen.de/" | ||
target="_blank" | ||
> | ||
<img | ||
:src="lhmLogo" | ||
alt="Logo Landeshauptstadt München" | ||
/> | ||
</a> | ||
</div> | ||
</template> | ||
</Layout> | ||
</template> | ||
|
||
<style scoped> | ||
.logo { | ||
display: flex; | ||
align-items: center; | ||
} | ||
@media (min-width: 768px) { | ||
.extra + .logo:before { | ||
margin-right: 16px; | ||
margin-left: 16px; | ||
width: 1px; | ||
height: 24px; | ||
background-color: var(--vp-c-divider); | ||
content: ""; | ||
} | ||
} | ||
.logo img { | ||
filter: var(--muc-logo-filter); | ||
height: 28px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import DefaultTheme from "vitepress/theme"; | ||
|
||
import LhmThemeExtension from "./LhmThemeExtension.vue"; | ||
|
||
import "./style.css"; | ||
|
||
export default { | ||
...DefaultTheme, | ||
Layout: LhmThemeExtension, | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
:root { | ||
--muc-logo-filter: invert(0); | ||
} | ||
|
||
footer.VPFooter { | ||
display: block !important; | ||
z-index: 100 !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Development |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Development Stack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# API-Gateway |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Integrations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# S3-Integration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Overview |
Oops, something went wrong.