Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Use vitepress #2096

Draft
wants to merge 20 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ docs/EN/_build/
docs/CROWDIN/fr/_build/
docs/CROWDIN/de/_build/
docs/CROWDIN/nl/_build/
node_modules/
.vitepress/cache/
.vitepress/dist/
294 changes: 294 additions & 0 deletions .vitepress/config/de.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,294 @@
import { type DefaultTheme, defineConfig } from "vitepress";

export const de = defineConfig({
lang: "de",
description: "Automatische OpenSource Insulin Abgabe System (closed loop)",

themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: nav(),

sidebar: sidebar(),

editLink: {
pattern:
"https://github.com/openaps/AndroidAPSdocs/edit/master/docs/EN/:path",
text: "Bearbeite diese Seite",
},

footer: {
message: "Veröffentlicht unter der AGPL-3.0 Lizenz.",
copyright: "© Copyright AndroidAPS community",
},
},
});

function nav(): DefaultTheme.NavItem[] {
return [
{ text: "Erste Schritte", link: "/de/introduction" },
{ text: "FAQ", link: "/" },
{
text: "Resources",
items: [
{
text: "X (formerly Twitter)",
link: "/",
},
{
text: "Discord Chat",
link: "/",
},
{
text: "Releases ",
link: "/",
},
],
},
];
}

function sidebar(): DefaultTheme.SidebarItem[] {
return [
{
text: "Start",
link: "/de/welcome",
},
{
text: "1) Getting Started",
collapsed: false,
items: [
{
text: "Introduction to AAPS",
link: "/de/introduction",
},
{
text: "Preparing for AAPS",
link: "",
},
{
text: "Technical components",
collapsed: true,
items: [
{
text: "Pump",
link: "",
},
{
text: "CGM / FGM",
link: "",
},
{
text: "Phone",
link: "",
},
{
text: "Smartwatch",
link: "",
},
],
},
],
},
{
text: "2) Setting up AAPS",
collapsed: true,
items: [
{
text: "Setting up the reporting server",
link: "",
},
{
text: "Building AAPS",
link: "",
},
{
text: "Transferring and installing AAPS",
link: "",
},
{
text: "Setup wizard",
link: "",
},
{
text: "Change AAPS configuration",
link: "",
},
{
text: "Completing the objectives",
link: "",
},
],
},
{
text: "3) Remote AAPS Features",
collapsed: true,
items: [
{
text: "Remote control",
link: "",
},
{
text: "Following only",
link: "",
},
{
text: "Android auto",
link: "",
},
],
},
{
text: "4) Daily life with AAPS",
collapsed: true,
items: [
{
text: "AAPS screens",
link: "",
},
{
text: "Key AAPS features",
link: "",
},
{
text: "COB calculation",
link: "",
},
{
text: "Sensitivity detection",
link: "",
},
{
text: "Profile switch",
link: "",
},
{
text: "Temp targets",
link: "",
},
{
text: "Extend carbs",
link: "",
},
{
text: "Automations",
link: "",
},
{
text: "Dynamic ISF",
link: "",
},
{
text: "Pump and cannulas",
link: "",
},
{
text: "Timezone travelling with pumps",
link: "",
},
{
text: "Time adjustment daylight savings time (DST)",
link: "",
},
],
},
{
text: "5) Maintenance of AAPS",
collapsed: true,
items: [
{
text: "Creating and restoring backups",
link: "",
},
{
text: "Restoring from your backups on a new phone or fresh installation of AAPS",
link: "",
},
{
text: "Version release notes",
link: "",
},
{
text: "Updating to a new version or branch",
link: "",
},
{
text: "Troubleshooting",
link: "",
},
],
},
{
text: "6) Advanced AAPS options",
collapsed: true,
items: [
{
text: "Full closed loop",
link: "",
},
{
text: "Dev branch",
link: "",
},
{
text: "xDrip engineering mode",
link: "",
},
],
},
{
text: "7) Troubleshooting & Getting help",
collapsed: true,
items: [
{
text: "Where can I get help with AAPS?",
link: "",
},
{
text: "General troubleshooting",
link: "",
},
{
text: "Troubleshooting AAPSClient",
link: "",
},
{
text: "Accessing log files",
link: "",
},
],
},
{
text: "8) Community",
collapsed: true,
items: [
{
text: "How to help?",
link: "",
},
{
text: "How to edit the docs?",
link: "",
},
{
text: "How to translate the app and docs?",
link: "",
},
{
text: "State of translations",
link: "",
},
],
},
{
text: "9) Miscellaneous",
collapsed: true,
items: [
{ text: "Glossary", link: "" },
{ text: "Legal", link: "" },
{ text: "Acknowledgements", link: "" },
{ text: "References", link: "" },
{ text: "Sandbox", link: "" },
],
},
];
}
Loading