feat: add site group

This commit is contained in:
aibayanyu 2023-02-26 09:13:45 +08:00
parent f732c214e3
commit 7b58fb84eb
3 changed files with 39 additions and 7 deletions

View File

@ -1,10 +1,12 @@
import type { DefaultTheme } from 'vitepress' import type { DefaultTheme } from 'vitepress'
export const getSidebar = (): DefaultTheme.Sidebar => { export const getSidebar = (): DefaultTheme.Sidebar => {
return [ return {
'/components/': [
{ {
text: 'Button 按钮', text: 'Button 按钮',
link: '/components/button/' link: '/components/button/'
} }
] ]
} }
}

3
site/components/index.md Normal file
View File

@ -0,0 +1,3 @@
# 组件列表
* [button](./button/)

View File

@ -1 +1,28 @@
# vue3组件库站点 ---
layout: home
title: Antd Tiny Vue
titleTemplate: Vite & Vue Powered Static Site Generator
hero:
name: Antd Tiny Vue
text: Vite & Vue Powered Static Site Generator
tagline: Simple, powerful, and performant. Meet the modern SSG framework you've always wanted.
actions:
- theme: brand
text: 组件
link: /components/
- theme: alt
text: View on GitHub
link: https://github.com/antd-tiny-vue/antd-tiny-vue
features:
- title: "Vite: The DX that can't be beat"
details: Feel the speed of Vite. Instant server start and lightning fast HMR that stays fast regardless of the app size.
- title: Designed to be simplicity first
details: With Markdown-centered content, it's built to help you focus on writing and deployed with minimum configuration.
- title: Power of Vue meets Markdown
details: Enhance your content with all the features of Vue in Markdown, while being able to customize your site with Vue.
- title: Fully static yet still dynamic
details: Go wild with true SSG + SPA architecture. Static on page load, but engage users with 100% interactivity from there.
---