vuepress/docs/.vuepress/config.js
曙光 e85e8b1ac7
Some checks are pending
部署文档 / deploy-gh-pages (push) Waiting to run
fix: 修改vuepress为中文
2024-12-22 23:25:14 +08:00

45 lines
1.0 KiB
JavaScript

import { defaultTheme } from "@vuepress/theme-default";
import { defineUserConfig } from "vuepress/cli";
import { viteBundler } from "@vuepress/bundler-vite";
export default defineUserConfig({
lang: "zh-CN", // 语言设置为中文
title: "我的学习笔记",
description: "记录我的学习过程",
theme: defaultTheme({
logo: "https://vuejs.press/images/hero.png",
navbar: [
{ text: "主页", link: "/" },
{ text: "快速开始", link: "/get-started" },
{
text: "文档",
children: [
{ text: "指南", link: "/guide/" },
{ text: "教程", link: "/tutorial/" },
],
},
{ text: "GitHub", link: "https://github.com/shuguangnet" },
],
}),
plugins: [
[
"vuepress-plugin-auto-sidebar", // 自动生成侧边栏插件
{
base: "/", // 自动扫描 docs 根目录
},
],
],
bundler: viteBundler({
viteOptions: {
build: {
minify: "esbuild", // 使用 esbuild 优化构建速度
},
},
}),
});