feat: add docs

This commit is contained in:
2026-01-29 22:44:36 +08:00
parent 110aec7d5f
commit c214c11244
10 changed files with 573 additions and 7 deletions

49
docs/.vitepress/config.ts Normal file
View File

@@ -0,0 +1,49 @@
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: "/" },
{ text: "文档", link: "/quick_start/dependencies" },
],
sidebar: [
{
text: "快速上手",
items: [{ text: "依赖项介绍", link: "/quick_start/dependencies" }],
},
{
text: "脚手架特色",
items: [{ text: "自动路由", link: "/cli_feature/auto_router" }],
},
],
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()],
},
});