This commit is contained in:
donghym
2026-05-31 21:26:47 +08:00
parent 5470393061
commit 7fd3fc1ca1
3 changed files with 5 additions and 37 deletions
+3
View File
@@ -4,6 +4,9 @@ import { resolve } from 'path'
export default defineConfig({ export default defineConfig({
// host: '0.0.0.0', // host: '0.0.0.0',
// port: 8000, // port: 8000,
scripts: [
`if (location.pathname === '/' || location.pathname === '') { location.replace('/guide/introduce'); }`,
],
themeConfig: { themeConfig: {
name: 'RustUI', name: 'RustUI',
logo: false, logo: false,
-35
View File
@@ -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 () => (
<Button variant="solid" color="primary">
Hello RustUI
</Button>
)
```
+2 -2
View File
@@ -1,4 +1,4 @@
--- ---
title: RustUI title: RustUI
hero: hero:
title: RustUI title: RustUI
@@ -27,4 +27,4 @@ features:
- title: 现代风格 - title: 现代风格
emoji: ✨ emoji: ✨
description: 融合 Apple HIG 与 Material Design 的最佳实践,打造精致的视觉语言 description: 融合 Apple HIG 与 Material Design 的最佳实践,打造精致的视觉语言
--- ---