首页
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>
|
|
||||||
)
|
|
||||||
```
|
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
title: RustUI
|
title: RustUI
|
||||||
hero:
|
hero:
|
||||||
title: RustUI
|
title: RustUI
|
||||||
|
|||||||
Reference in New Issue
Block a user