feat: add configs

This commit is contained in:
camera-2018
2023-04-15 01:56:42 +08:00
parent 076b547959
commit 80598c7b8c
2 changed files with 26 additions and 9 deletions

View File

@@ -1,11 +1,11 @@
{ {
"hash": "a6b6eb8d", "hash": "2b1b1e9a",
"browserHash": "4ad643d4", "browserHash": "34536978",
"optimized": { "optimized": {
"vue": { "vue": {
"src": "../../../node_modules/vue/dist/vue.runtime.esm-bundler.js", "src": "../../../node_modules/vue/dist/vue.runtime.esm-bundler.js",
"file": "vue.js", "file": "vue.js",
"fileHash": "83119fbb", "fileHash": "8ab130c8",
"needsInterop": false "needsInterop": false
} }
}, },

View File

@@ -2,12 +2,14 @@ import { defineConfig } from 'vitepress'
// https://vitepress.dev/reference/site-config // https://vitepress.dev/reference/site-config
export default defineConfig({ export default defineConfig({
title: "srt-wiki", lang: 'zh-CN',
description: "srt-wiki", title: "HDU-CS-WIKI",
description: "HDU计算机科学讲义",
lastUpdated: true,
themeConfig: { themeConfig: {
// https://vitepress.dev/reference/default-theme-config // https://vitepress.dev/reference/default-theme-config
nav: [ nav: [
{ text: 'Home', link: '/' }, { text: '首页', link: '/' },
], ],
sidebar: [ sidebar: [
@@ -189,11 +191,26 @@ export default defineConfig({
] ]
} }
] ]
},
{
text: 'Contributors',
link: '/contributors'
} }
], ],
socialLinks: [ socialLinks: [
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' } { icon: 'github', link: 'https://github.com/camera-2018/hdu-cs-wiki' }
] ],
} footer: {
message: 'Released under the MIT License.',
copyright: 'Copyright © 2023-present Evan You && HDU 计算机科协 && ALL 协作者'
},
lastUpdatedText: '上次更改',
docFooter: {
prev: '上一小节',
next: '下一小节'
},
// localSearch: true, # 尚未发布的本地搜索,撅撅子
},
}) })