docs: update docs

This commit is contained in:
vben
2024-07-07 23:52:19 +08:00
parent e68e1b40ce
commit 6147d13a29
13 changed files with 113 additions and 33 deletions

View File

@@ -1,15 +1,35 @@
import { defineConfigWithTheme } from 'vitepress';
export default defineConfigWithTheme({
description: 'Vben Admin Pro Doc',
description: 'Vben Admin Pro & 企业级管理系统框架',
lang: 'zh-CN',
locales: {
en: {
label: 'English',
lang: 'en',
link: '/en/index',
},
root: {
label: '简体中文',
lang: 'zh-CN',
},
},
srcDir: 'src',
themeConfig: {
editLink: {
pattern: 'https://github.com/vbenjs/vue-vben-admin/edit/main/docs/:path',
text: 'Edit this page on GitHub',
},
footer: {
copyright: 'Copyright © 2024-present Vben Admin Pro',
},
i18nRouting: true,
logo: 'https://cdn.jsdelivr.net/npm/@vbenjs/static-source@0.1.3/source/logo-v1.webp',
nav: [
{ link: '/', text: 'Home' },
{ link: '/markdown-examples', text: 'Examples' },
],
sidebar: [
{
text: 'Examples',
@@ -19,12 +39,11 @@ export default defineConfigWithTheme({
],
},
],
siteTitle: 'Vben Admin Pro',
socialLinks: [
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' },
{ icon: 'github', link: 'https://github.com/vbenjs/vue-vben-admin' },
],
},
title: 'Vben Admin Pro',
vite: {
build: {
chunkSizeWarningLimit: Infinity,