fix: reorganize vitepress docs into /docs

This commit is contained in:
Aarnav Tale
2025-10-16 18:29:51 -04:00
parent 5d94667186
commit 639e7e9c6b
8 changed files with 22 additions and 9 deletions
+44
View File
@@ -0,0 +1,44 @@
import { defineConfig } from 'vitepress';
export default defineConfig({
title: 'Headplane',
description: 'The missing dashboard for Headscale',
ignoreDeadLinks: ['/docs/Integrated-Mode', '/docs/Simple-Mode'],
cleanUrls: true,
head: [['link', { rel: 'icon', href: '/favicon.ico' }]],
themeConfig: {
logo: '/logo.svg',
nav: [{ text: 'Home', link: '/' }],
sidebar: [
{
text: 'Chapters',
items: [
{ text: 'Getting Started', link: '/README' },
{ text: 'Configuration', link: '/Configuration' },
{ text: 'Bare-Metal Mode', link: '/Bare-Metal' },
{ text: 'Integrated Mode', link: '/Integrated-Mode' },
{ text: 'Simple Mode', link: '/Simple-Mode' },
{ text: 'Nix', link: '/Nix' },
{ text: 'NixOS', link: '/NixOS-options' },
{ text: 'Security', link: '/SECURITY' },
{ text: 'Contributing', link: '/CONTRIBUTING' },
{ text: 'Changelog', link: '/CHANGELOG' },
],
},
],
socialLinks: [
{ icon: 'github', link: 'https://github.com/tale/headplane' },
{ icon: 'githubsponsors', link: 'https://github.com/sponsors/tale' },
{ icon: 'kofi', link: 'https://ko-fi.com/atale' },
],
lastUpdated: {
text: 'Updated at',
formatOptions: {
dateStyle: 'full',
timeStyle: 'medium',
},
},
},
});
+7
View File
@@ -0,0 +1,7 @@
html.dark .light-only {
display: none !important;
}
html:not(.dark) .dark-only {
display: none !important;
}
+4
View File
@@ -0,0 +1,4 @@
import DefaultTheme from 'vitepress/theme';
import './custom.css';
export default DefaultTheme;