Files
template-vue-hucky/docs/.vitepress/config.ts

56 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-01-29 22:44:36 +08:00
import { defineConfig } from "vitepress";
import {
groupIconMdPlugin,
groupIconVitePlugin,
} from "vitepress-plugin-group-icons";
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "Hucky 操作指南",
description: "帮助您快速入门",
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: "首页", link: "/" },
2026-01-29 23:24:12 +08:00
{ text: "文档", link: "/quick-start/dependencies" },
2026-01-29 22:44:36 +08:00
],
sidebar: [
{
text: "快速上手",
2026-01-29 23:24:12 +08:00
items: [{ text: "依赖项介绍", link: "/quick-start/dependencies" }],
2026-01-29 22:44:36 +08:00
},
{
text: "脚手架特色",
2026-01-31 00:00:46 +08:00
items: [
{ text: "自动路由", link: "/cli-feature/auto-router" },
{ text: "组件库", link: "/cli-feature/component-lib" },
2026-02-02 10:12:34 +08:00
{ text: "国际化", link: "/cli-feature/international" },
2026-02-02 20:14:48 +08:00
{ text: "图表", link: "/cli-feature/chart" },
2026-01-31 00:00:46 +08:00
],
2026-01-29 22:44:36 +08:00
},
],
socialLinks: [
{
icon: "github",
link: "https://github.com/gushen610140/template-vue-hucky",
},
{
icon: "gitea",
link: "http://113.46.158.62:3000/gushen/template-vue-hucky",
},
],
},
markdown: {
config: (md) => {
// 使用插件为代码块丰富样式
md.use(groupIconMdPlugin);
},
},
vite: {
plugins: [groupIconVitePlugin()],
},
2026-01-29 23:24:12 +08:00
head: [["link", { rel: "icon", href: "/logo.png" }]],
2026-01-29 22:44:36 +08:00
});