Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
Add the docs to the navigation and launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Dlurak committed Nov 8, 2023
1 parent e6a24df commit de26467
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 4 deletions.
7 changes: 7 additions & 0 deletions src/constants/launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,13 @@ const rawLauncherLinks: {
description: 'nav.contributors.description',
query: ['contributors', 'beiträger', 'mitwirkende', 'mitarbeiter', 'contributors']
},
{
title: 'nav.documentation',
path: '/documentation',
bxIcon: 'bx-book-open',
description: 'nav.documentation.description',
query: ['documentation', 'dokumentation', 'erklärung', 'explaination', 'docs', 'doku']
},

{
title: 'nav.github.frontend',
Expand Down
10 changes: 9 additions & 1 deletion src/constants/nav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ export const navData = [
showInNav: false,
navBoxIcon: '',
showInFooter: true,
footerCategory: 'Contributors'
footerCategory: 'Else'
},
{
title: 'documentation',
uri: '/documentation',
showInNav: false,
navBoxIcon: '',
showInFooter: true,
footerCategory: 'Else'
}
] as const;
4 changes: 3 additions & 1 deletion src/languages/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,16 @@ const de = {
'nav.settings.preferences.description':
'Hier kannst du deine Präferenzen ändern. Wie z.B. das Erscheinungsbild.',
'nav.search': 'Suche',
'nav.documentation': 'Dokumentation',
'nav.documentation.description': 'Die Dokumentation erklärt dir gesamt Dlool.',

'nav.categories.authentication': 'Authentifizierungen',
'nav.categories.homework': 'Hausaufgaben',
'nav.categories.tricks': 'Tricks',
'nav.categories.moderation': 'Moderation',
'nav.categories.notes': 'Notizen',
'nav.categories.events': 'Kalender',
'nav.categories.contributors': 'Mitwirkende',
'nav.categories.else': 'Sonstige',
login: 'Einloggen',
'login.welcome': 'Willkommen zurück!',
'login.error.wrongCred': 'Falscher Nutzername oder Passwort',
Expand Down
4 changes: 3 additions & 1 deletion src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,16 @@ const en = {
'nav.settings.preferences': 'Preferences',
'nav.settings.preferences.description': 'Here you can change your preferences like the theme.',
'nav.search': 'Search',
'nav.documentation': 'Documentation',
'nav.documentation.description': 'The documentation aims to explain everything about Dlool',

'nav.categories.authentication': 'Authentication',
'nav.categories.homework': 'Homework',
'nav.categories.tricks': 'Tricks',
'nav.categories.moderation': 'Moderation',
'nav.categories.notes': 'Notes',
'nav.categories.events': 'Calendar',
'nav.categories.contributors': 'Contributors',
'nav.categories.else': 'Else',
login: 'Login',
'login.welcome': 'Welcome back',
'login.error.wrongCred': 'Wrong username or password',
Expand Down
2 changes: 1 addition & 1 deletion src/lib/documentation/TOC.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
export let directoryTree: Record<string, unknown>;
export let finalPath: any = true;
export let finalPath: unknown = true;
export let currentPath = '/';
</script>
Expand Down

0 comments on commit de26467

Please sign in to comment.