Skip to content

Commit 856ead9

Browse files
chore: serve site on root domain (#816)
1 parent 146c405 commit 856ead9

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

docs/.vitepress/config.mts

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
import {defineConfig} from 'vitepress'
1+
import { defineConfig } from 'vitepress'
22

3-
import {withMermaid} from 'vitepress-plugin-mermaid';
3+
import { withMermaid } from 'vitepress-plugin-mermaid';
44

55
import footnote from 'markdown-it-footnote'
66

77
// https://vitepress.dev/reference/site-config
88
const config = defineConfig({
99
title: "Hyperion",
1010
description: "The most advanced Minecraft game engine built in Rust",
11-
base: "/hyperion/",
1211
markdown: {
1312
math: true,
1413
config: (md) => {
@@ -18,29 +17,29 @@ const config = defineConfig({
1817
themeConfig: {
1918
// https://vitepress.dev/reference/default-theme-config
2019
nav: [
21-
{text: 'Home', link: '/'},
22-
{text: 'Architecture', link: '/architecture/introduction'},
23-
{text: 'Tag', link: '/tag/introduction'},
20+
{ text: 'Home', link: '/' },
21+
{ text: 'Architecture', link: '/architecture/introduction' },
22+
{ text: 'Tag', link: '/tag/introduction' },
2423
],
2524

2625
sidebar: [
2726
{
2827
text: 'Architecture',
2928
items: [
30-
{text: 'Introduction', link: '/architecture/introduction'},
31-
{text: 'Game Server', link: '/architecture/game-server'},
32-
{text: 'Proxy', link: '/architecture/proxy'},
29+
{ text: 'Introduction', link: '/architecture/introduction' },
30+
{ text: 'Game Server', link: '/architecture/game-server' },
31+
{ text: 'Proxy', link: '/architecture/proxy' },
3332
]
3433
},
3534
{
3635
text: 'Tag',
3736
items: [
38-
{text: '10,000 Player PvP', link: '/tag/introduction'},
37+
{ text: '10,000 Player PvP', link: '/tag/introduction' },
3938
]
4039
}
4140
],
4241
socialLinks: [
43-
{icon: 'github', link: 'https://github.com/hyperion-mc/hyperion'}
42+
{ icon: 'github', link: 'https://github.com/hyperion-mc/hyperion' }
4443
]
4544
}
4645
})

0 commit comments

Comments
 (0)