From 7fd3fc1ca130ff2edcf819d746c360eea535964f Mon Sep 17 00:00:00 2001 From: donghym Date: Sun, 31 May 2026 21:26:47 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dumirc.ts | 3 +++ docs/guide/introduce.en-US.md | 35 ----------------------------------- docs/index.md | 4 ++-- 3 files changed, 5 insertions(+), 37 deletions(-) delete mode 100644 docs/guide/introduce.en-US.md diff --git a/.dumirc.ts b/.dumirc.ts index c71f99c..2122511 100644 --- a/.dumirc.ts +++ b/.dumirc.ts @@ -4,6 +4,9 @@ import { resolve } from 'path' export default defineConfig({ // host: '0.0.0.0', // port: 8000, + scripts: [ + `if (location.pathname === '/' || location.pathname === '') { location.replace('/guide/introduce'); }`, + ], themeConfig: { name: 'RustUI', logo: false, diff --git a/docs/guide/introduce.en-US.md b/docs/guide/introduce.en-US.md deleted file mode 100644 index c1973a5..0000000 --- a/docs/guide/introduce.en-US.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -nav: Guide -title: Introduction ---- - -# RustUI - -AI-Native component library for modern visualization. - -## Features - -- **AI-First** — Zero-ambiguity APIs designed for AI code generation -- **Type Safe** — Full type inference with TypeScript -- **Flexible Theme** — Full theme customization via CSS variables -- **Tree Shaking** — Modular architecture, only bundle what you use - -## Installation - -```bash -npm install rustui -# or -pnpm add rustui -``` - -## Quick Start - -```tsx -import { Button } from 'RustUI' - -export default () => ( - -) -``` diff --git a/docs/index.md b/docs/index.md index 96ac278..0592aa5 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,4 +1,4 @@ ---- +--- title: RustUI hero: title: RustUI @@ -27,4 +27,4 @@ features: - title: 现代风格 emoji: ✨ description: 融合 Apple HIG 与 Material Design 的最佳实践,打造精致的视觉语言 ---- +--- \ No newline at end of file