45 lines
1.0 KiB
JavaScript
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 优化构建速度
|
|
},
|
|
},
|
|
}),
|
|
});
|