首页
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
@@ -1,4 +1,4 @@
|
||||
---
|
||||
---
|
||||
title: RustUI
|
||||
hero:
|
||||
title: RustUI
|
||||
@@ -27,4 +27,4 @@ features:
|
||||
- title: 现代风格
|
||||
emoji: ✨
|
||||
description: 融合 Apple HIG 与 Material Design 的最佳实践,打造精致的视觉语言
|
||||
---
|
||||
---
|
||||
Reference in New Issue
Block a user