From f6a4082410361a7399438a23646d31796fcace6c Mon Sep 17 00:00:00 2001 From: lukas0008 Date: Mon, 2 Sep 2024 21:08:41 +0200 Subject: [PATCH] Set base url to /Pumpkin/ for github pages --- docs/.vitepress/config.mts | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index dd33f8f05..fe7139230 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -1,36 +1,44 @@ -import { defineConfig } from 'vitepress'; +import { defineConfig } from "vitepress"; // https://vitepress.dev/reference/site-config export default defineConfig({ - title: 'Pumpkin', - description: 'Empowering everyone to host fast and efficient Minecraft servers', - lang: 'en-US', + title: "Pumpkin", + description: + "Empowering everyone to host fast and efficient Minecraft servers", + lang: "en-US", + base: "/Pumpkin/", themeConfig: { // https://vitepress.dev/reference/default-theme-config sidebar: [ { - text: 'About', + text: "About", items: [ - { text: 'Introduction', link: '/about/introduction' }, - { text: 'Quick Start', link: '/about/quick-start' }, - { text: 'Contributing', link: 'https://github.com/Snowiiii/Pumpkin/blob/master/CONTRIBUTING.md' }, + { text: "Introduction", link: "/about/introduction" }, + { text: "Quick Start", link: "/about/quick-start" }, + { + text: "Contributing", + link: "https://github.com/Snowiiii/Pumpkin/blob/master/CONTRIBUTING.md", + }, ], }, { - text: 'Plugins', + text: "Plugins", items: [ - { text: 'About Plugins', link: '/plugins/about' }, - { text: 'Getting Started in Rust', link: '/plugins/getting-started-rs' }, + { text: "About Plugins", link: "/plugins/about" }, + { + text: "Getting Started in Rust", + link: "/plugins/getting-started-rs", + }, ], }, ], socialLinks: [ - { icon: 'github', link: 'https://github.com/Snowiiii/Pumpkin' }, - { icon: 'discord', link: 'https://discord.gg/RNm224ZsDq' }, + { icon: "github", link: "https://github.com/Snowiiii/Pumpkin" }, + { icon: "discord", link: "https://discord.gg/RNm224ZsDq" }, ], - logo: '/assets/icon.png', + logo: "/assets/icon.png", }, - head: [['link', { rel: 'icon', href: '/assets/favicon.ico' }]], + head: [["link", { rel: "icon", href: "/assets/favicon.ico" }]], });