首页
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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
|
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 的最佳实践,打造精致的视觉语言
|
||||||
---
|
---
|
||||||
Reference in New Issue
Block a user