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,

28
website/src/en/index.md Normal file
View File

@@ -0,0 +1,28 @@
---
# https://vitepress.dev/reference/default-theme-home-page
layout: home
sidebar: false
hero:
name: 'Vben Admin Pro'
text: '企业级管理系统框架 - EN'
tagline: 开箱即用,简单高效
image:
src: https://cdn.jsdelivr.net/npm/@vbenjs/static-source@0.1.3/source/logo-v1.webp
alt: Vben Admin Pro
actions:
- theme: brand
text: 开始
link: /guide/
- theme: alt
text: 在 GitHub 查看
link: https://github.com/vbenjs/vue-vben-admin
features:
- title: Feature A
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
- title: Feature B
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
- title: Feature C
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
---

View File

@@ -1,18 +1,22 @@
---
# https://vitepress.dev/reference/default-theme-home-page
layout: home
sidebar: false
hero:
name: 'My Awesome Project'
text: 'A VitePress Site'
tagline: My great project tagline
name: 'Vben Admin Pro'
text: '企业级管理系统框架'
tagline: 开箱即用,简单高效
image:
src: https://cdn.jsdelivr.net/npm/@vbenjs/static-source@0.1.3/source/logo-v1.webp
alt: Vben Admin Pro
actions:
- theme: brand
text: Markdown Examples
link: /markdown-examples
text: 开始
link: /guide/
- theme: alt
text: API Examples
link: /api-examples
text: 在 GitHub 查看
link: https://github.com/vbenjs/vue-vben-admin
features:
- title: Feature A