From 7b58fb84eb3eb9b02e7ab6e0edaca48b95acd5c8 Mon Sep 17 00:00:00 2001 From: aibayanyu Date: Sun, 26 Feb 2023 09:13:45 +0800 Subject: [PATCH] feat: add site group --- site/.vitepress/config/sidebar.ts | 14 ++++++++------ site/components/index.md | 3 +++ site/index.md | 29 ++++++++++++++++++++++++++++- 3 files changed, 39 insertions(+), 7 deletions(-) create mode 100644 site/components/index.md diff --git a/site/.vitepress/config/sidebar.ts b/site/.vitepress/config/sidebar.ts index ef5bc9b..8426193 100644 --- a/site/.vitepress/config/sidebar.ts +++ b/site/.vitepress/config/sidebar.ts @@ -1,10 +1,12 @@ import type { DefaultTheme } from 'vitepress' export const getSidebar = (): DefaultTheme.Sidebar => { - return [ - { - text: 'Button 按钮', - link: '/components/button/' - } - ] + return { + '/components/': [ + { + text: 'Button 按钮', + link: '/components/button/' + } + ] + } } diff --git a/site/components/index.md b/site/components/index.md new file mode 100644 index 0000000..5e6801a --- /dev/null +++ b/site/components/index.md @@ -0,0 +1,3 @@ +# 组件列表 + +* [button](./button/) diff --git a/site/index.md b/site/index.md index 35c1e82..4b066b4 100644 --- a/site/index.md +++ b/site/index.md @@ -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. +---