Skip to content
Merged
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
8 changes: 7 additions & 1 deletion docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
// If the subfolder is e.g. 'docs/dist', the env var BASE_DIR should be set to '/docs/dist/'.
//////////////////////////////////////////////////////////////////////////

import { defineConfig, withBase } from 'vitepress'
import { defineConfig } from 'vitepress'
import tabsPlugin from '@red-asuka/vitepress-plugin-tabs'
import { head, navbar_EN, navbar_DE, sidebar_EN, sidebar_DE } from './configs'
import path from 'path'
import fs from 'fs'
Expand All @@ -20,6 +21,11 @@ export default defineConfig({
titleTemplate: ":title · Hyperion documentation",
description: "Hyperion Ambient Light documentation",
lastUpdated: true,
markdown: {
config: (md) => {
tabsPlugin(md)
},
},
themeConfig: {
siteTitle: '',
externalLinkIcon: true,
Expand Down
2 changes: 1 addition & 1 deletion docs/.vitepress/configs/navbar/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const navbar_DE: any = [
text: 'Anleitungen',
items: [
{ text: 'Einführung', link: '/de/user/Introduction.md' },
{ text: 'Erste Schritte', link: '/de/user/GettingStarted.md' },
{ text: 'Erste Schritte', link: '/de/user/gettingstarted/Overview.md' },
{ text: 'Konfigurieren', link: '/de/user/Configuration.md' },
{ text: 'LED Hardware', link: '/de/user/leddevices/Overview.md' },
{ text: 'HyperBian', link: '/de/user/HyperBian.md' }
Expand Down
2 changes: 1 addition & 1 deletion docs/.vitepress/configs/navbar/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const navbar_EN: any = [
text: 'General',
items: [
{ text: 'Introduction', link: '/user/Introduction.md' },
{ text: 'Getting Started', link: '/user/GettingStarted.md' },
{ text: 'Getting Started', link: '/user/gettingstarted/Overview.md' },
{ text: 'Configuration', link: '/user/Configuration.md' },
{ text: 'LED Hardware', link: '/user/leddevices/Overview.md' },
{ text: 'HyperBian', link: '/user/HyperBian.md' }
Expand Down
15 changes: 14 additions & 1 deletion docs/.vitepress/configs/sidebar/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,20 @@ export const sidebar_DE: any = {
text: 'Allgemein',
items: [
{ text: 'Einführung', link: '/de/user/Introduction.md' },
{ text: 'Erste Schritte', link: '/de/user/GettingStarted.md' },
{
text: 'Erste Schritte',
items: [
{ text: 'Übersicht', link: '/de/user/gettingstarted/Overview.md' },
{ text: 'Installieren',
collapsed: true,
items: [
{ text: 'Linux', link: '/de/user/gettingstarted/Linux.md' },
{ text: 'Windows', link: '/de/user/gettingstarted/Windows.md' },
{ text: 'macOS', link: '/de/user/gettingstarted/macOS.md' }
]
}
]
},
{ text: 'Konfigurieren', link: '/de/user/Configuration.md' },
{
text: 'LED Hardware',
Expand Down
15 changes: 14 additions & 1 deletion docs/.vitepress/configs/sidebar/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,20 @@ export const sidebar_EN: any = {
text: 'General',
items: [
{ text: 'Introduction', link: '/user/Introduction.md' },
{ text: 'Getting Started', link: '/user/GettingStarted.md' },
{
text: 'Getting Started',
items: [
{ text: 'Overview', link: '/user/gettingstarted/Overview.md' },
{ text: 'Installation',
collapsed: true,
items: [
{ text: 'Linux', link: '/user/gettingstarted/Linux.md' },
{ text: 'Windows', link: '/user/gettingstarted/Windows.md' },
{ text: 'macOS', link: '/user/gettingstarted/macOS.md' }
]
}
]
},
{ text: 'Configuration', link: '/user/Configuration.md' },
{
text: 'LED Hardware',
Expand Down
4 changes: 4 additions & 0 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import DefaultTheme from 'vitepress/theme'
import { h } from 'vue'
import { Tab, Tabs } from 'vue3-tabs-component'
import ExtendedLayout from './components/ExtendedLayout.vue'
import ImageWrap from './components/ImageWrap.vue'
import Contributors from './components/Contributors.vue'
import FloatingVue from 'floating-vue'

import 'floating-vue/dist/style.css'
import '@red-asuka/vitepress-plugin-tabs/dist/style.css'
import './styles/index.css'

export default {
Expand All @@ -14,6 +16,8 @@ export default {
return h(ExtendedLayout)
},
enhanceApp({ app }) {
app.component('Tab', Tab)
app.component('Tabs', Tabs)
app.component('ImageWrap', ImageWrap)
app.component('Contributors', Contributors)
app.use(FloatingVue)
Expand Down
2 changes: 1 addition & 1 deletion docs/de/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ hero:
actions:
- theme: brand
text: 🚀 Los geht's
link: /de/user/GettingStarted.md
link: /de/user/gettingstarted/Overview.md
- theme: alt
text: Was ist Hyperion?
link: /de/user/Introduction.md
Expand Down
3 changes: 0 additions & 3 deletions docs/de/user/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,6 @@ Ersetze ${USER} durch den Benutzernamen, wenn der Benutzer zuvor mit der Option
systemctl status hyperion@${USER}
```




<style>
.vp-doc table {
display: table;
Expand Down
Loading