This commit is contained in:
Malasaur 2025-11-20 23:02:44 +01:00
parent 7d95805110
commit 445c23e4cf
No known key found for this signature in database
40 changed files with 1804 additions and 404 deletions

View file

@ -2,16 +2,13 @@ import { defineConfig, UserConfig } from "vitepress";
import { withSidebar } from "vitepress-sidebar";
const vitePressOptions: UserConfig = {
title: "Retards Server",
description: "New Beginning",
title: "Retards",
srcDir: "site",
lastUpdated: true,
themeConfig: {
nav: [
{ text: "Home", link: "/" },
{ text: "Tutorials", link: "/tutorials/" },
{ text: "Wiki", link: "/wiki/" },
//{ text: "News", link: "/news/" },
{ text: "Server", link: "/server/" },
],
search: {
@ -74,30 +71,8 @@ const vitePressOptions: UserConfig = {
const vitePressSidebarOptions = [
{
documentRootPath: "site",
scanStartPath: "news",
resolvePath: "/news/",
useTitleFromFrontmatter: true,
useTitleFromFileHeading: true,
collapsed: true,
useFolderTitleFromIndexFile: true,
useFolderLinkFromIndexFile: true,
sortMenusByFrontmatterOrder: true,
},
{
documentRootPath: "site",
scanStartPath: "tutorials",
resolvePath: "/tutorials/",
useTitleFromFrontmatter: true,
useTitleFromFileHeading: true,
collapsed: true,
useFolderTitleFromIndexFile: true,
useFolderLinkFromIndexFile: true,
sortMenusByFrontmatterOrder: true,
},
{
documentRootPath: "site",
scanStartPath: "wiki",
resolvePath: "/wiki/",
scanStartPath: "server",
resolvePath: "/server/",
useTitleFromFrontmatter: true,
useTitleFromFileHeading: true,
collapsed: true,
@ -108,5 +83,5 @@ const vitePressSidebarOptions = [
];
export default defineConfig(
withSidebar(vitePressOptions, vitePressSidebarOptions)
withSidebar(vitePressOptions, vitePressSidebarOptions),
);