Metadata-Version: 2.4
Name: aiui
Version: 0.2.5
Summary: YAML-driven website generator - CLI and compiler
Project-URL: Homepage, https://github.com/MervinPraison/PraisonAIUI
Project-URL: Documentation, https://praisonai.com/docs/aiui
Project-URL: Repository, https://github.com/MervinPraison/PraisonAIUI
Author: Mervin Praison
License: MIT
Keywords: aiui,cli,docs,generator,website,yaml
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.9
Requires-Dist: pydantic>=2.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: rich>=13.0
Requires-Dist: typer>=0.9
Requires-Dist: watchfiles>=0.21
Provides-Extra: dev
Requires-Dist: mypy>=1.0; extra == 'dev'
Requires-Dist: pytest-cov>=4.0; extra == 'dev'
Requires-Dist: pytest>=7.0; extra == 'dev'
Requires-Dist: ruff>=0.1; extra == 'dev'
Requires-Dist: types-pyyaml>=6.0; extra == 'dev'
Description-Content-Type: text/markdown

# PraisonAIUI

[![Python Tests](https://github.com/MervinPraison/PraisonAIUI/actions/workflows/ci.yml/badge.svg)](https://github.com/MervinPraison/PraisonAIUI/actions)
[![PyPI version](https://badge.fury.io/py/praisonaiui.svg)](https://badge.fury.io/py/praisonaiui)

> **One YAML file → One complete website**

PraisonAIUI is a YAML-driven website generator. Write one config file, point to a docs folder, run `aiui build` — get a modern, production-ready documentation site.

## Philosophy

> **We are a wrapper, not a framework.**

We integrate best-in-class libraries instead of reinventing them:

| Feature | Library |
|---------|---------|
| Markdown | `react-markdown` + `remark-gfm` |
| UI Components | shadcn/ui |
| Theming | Tailwind CSS + CSS variables |
| Validation | Pydantic |

## Quick Start

```bash
pip install praisonaiui
aiui init
aiui build
aiui serve
```

Open http://localhost:8000 — your site is ready.

## Configuration

```yaml
# aiui.template.yaml
schemaVersion: 1

site:
  title: "My Docs"
  theme:
    preset: "blue"      # zinc, slate, green, blue, violet, orange, rose, yellow
    radius: "md"        # none, sm, md, lg, xl
    darkMode: false

content:
  docs:
    dir: "./docs"

templates:
  docs:
    layout: "ThreeColumnLayout"   # or TwoColumnLayout, CenteredLayout
    slots:
      main: { type: "DocContent" }

routes:
  - match: "/docs/**"
    template: "docs"
```

## Layouts

| Layout | Description |
|--------|-------------|
| `ThreeColumnLayout` | Sidebar + Content + TOC (classic docs) |
| `TwoColumnLayout` | Sidebar + Content (no TOC) |
| `CenteredLayout` | Centered content, no sidebar |
| `FullWidthLayout` | Full-width content |

## Theme Presets

8 built-in [shadcn themes](https://ui.shadcn.com/themes): `zinc`, `slate`, `green`, `blue`, `violet`, `orange`, `rose`, `yellow`

Each with light/dark mode support.

## CLI Commands

```bash
aiui init              # Create aiui.template.yaml
aiui init --frontend   # Scaffold full React project
aiui validate          # Validate YAML config
aiui build             # Compile to static site
aiui serve             # Dev server with hot reload
```

## Architecture

```
aiui.template.yaml     →  aiui build  →  aiui/
       ↓                                    ├── index.html
    docs/*.md                               ├── docs/*.md
                                            ├── ui-config.json
                                            └── assets/
```

## Development

```bash
git clone https://github.com/MervinPraison/PraisonAIUI.git
cd PraisonAIUI
pip install -e .[dev]
pytest tests -v
```

## License

MIT © [Praison Limited](https://praison.ai)
