-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvuepress.config.js
More file actions
69 lines (68 loc) · 1.67 KB
/
vuepress.config.js
File metadata and controls
69 lines (68 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import { viteBundler } from "@vuepress/bundler-vite";
import { defineUserConfig } from "vuepress";
import { removeHtmlExtensionPlugin } from 'vuepress-plugin-remove-html-extension';
import { resolve } from "path";
import { hopeTheme } from "vuepress-theme-hope";
export default defineUserConfig({
title: "Minecraft Protocol",
description: "协议资料整理",
base: "/",
lang: "zh-CN",
locales: {
"/": {
lang: "zh-CN",
},
},
markdown: {
lineNumbers: true,
},
theme: hopeTheme({
favicon: "/images/logo.png",
sidebar: {
"/": "structure",
},
navbar: [
{
text: "版本列表",
link: "/versions",
},
],
print: false,
pure: true,
repo: "mcio-dev/protocol",
docsDir: "docs",
plugins: {
activeHeaderLinks: true,
nprogress: true,
mdEnhance: {
attrs: true,
tabs: true,
codetabs: true,
sub: true,
sup: true,
mark: true,
},
},
lastUpdated: true,
breadcrumb: false,
pageInfo: false,
nextLink: false,
prevLink: false,
search: true,
searchMaxSuggestions: 10,
darkmode: "toggle"
}),
plugins: [
removeHtmlExtensionPlugin()
],
bundler: viteBundler({
viteOptions: {
resolve: {
alias: {
"@": resolve(__dirname, "docs"),
},
},
},
vuePluginOptions: {},
}),
});