This directory contains the VitePress documentation site for Object UI.
- 🏠 Homepage
- 📖 Getting Started Guide
- 🚀 Quick Start
- 📦 Installation
- 🎨 Visual Studio
- 🗺️ Roadmap
docs/
├── .vitepress/
│ ├── config.mts # VitePress configuration
│ └── dist/ # Build output (generated)
│
├── guide/ # User Guides
│ ├── introduction.md # What is Object UI
│ ├── quick-start.md # 5-minute tutorial
│ ├── installation.md # Setup instructions
│ ├── studio.md # Visual designer guide
│ ├── schema-rendering.md # Schema rendering concepts
│ ├── component-registry.md # Component registration
│ └── expressions.md # Expression system
│
├── protocol/ # Protocol Specifications
│ ├── overview.md # Protocol overview
│ ├── implementation-status.md # Status tracking
│ ├── object.md # Object protocol
│ ├── view.md # View protocol
│ ├── page.md # Page protocol
│ ├── form.md # Form protocol
│ ├── menu.md # Menu protocol
│ ├── app.md # App protocol
│ └── report.md # Report protocol
│
├── api/ # API Documentation
│ ├── core.md # @object-ui/core API
│ ├── react.md # @object-ui/react API
│ ├── components.md # @object-ui/components API
│ └── designer.md # @object-ui/designer API
│
├── spec/ # Technical Specifications
│ ├── architecture.md # System architecture
│ ├── project-structure.md # Code organization
│ ├── schema-rendering.md # Rendering spec
│ ├── component.md # Component metadata spec
│ ├── base-components.md # Base components spec
│ ├── component-library.md # Component library reference
│ └── component-package.md # Creating component packages
│
├── components/ # Component Examples
│ ├── form.md # Form component guide
│ └── calendar-view.md # Calendar view guide
│
├── public/ # Static assets
├── index.md # Homepage
├── ROADMAP.md # Product roadmap
└── package.json # Docs workspace config
# From repository root
pnpm docs:dev
# Or from docs directory
pnpm devVisit http://localhost:5173 to see the site.
# From repository root
pnpm docs:build
# Or from docs directory
pnpm buildThe built site will be in docs/.vitepress/dist/.
# From repository root
pnpm docs:preview
# Or from docs directory
pnpm preview- Create a new
.mdfile inguide/ - Add it to the sidebar in
.vitepress/config.mts:
{
text: 'Getting Started',
items: [
// ... existing items
{ text: 'Your New Guide', link: '/guide/your-new-guide' }
]
}- Create a new
.mdfile inprotocol/ - Add it to the protocol sidebar section in
.vitepress/config.mts - Update
implementation-status.mdwith the status
- Create a new
.mdfile inapi/ - Add it to the API sidebar in
.vitepress/config.mts
- Create a new
.mdfile incomponents/ - Add it to the components sidebar in
.vitepress/config.mts
- Use clear, concise language
- Provide code examples for all concepts
- Include both JSON schemas and React code where relevant
- Use TypeScript for code examples
- Add practical, real-world examples
VitePress supports enhanced Markdown:
::: code-group
```bash [npm]
npm install @object-ui/reactpnpm add @object-ui/react:::
#### Custom Containers
```markdown
::: tip
This is a tip
:::
::: warning
This is a warning
:::
::: danger
This is a danger message
:::
::: info
This is an info message
:::
Specify language and highlight lines:
```ts{2,4-6}
interface Schema {
type: string // [!code highlight]
id?: string
className?: string // [!code focus]
props?: Record<string, any>
}
### Cross-References
Use relative links for internal documentation:
```markdown
See [Schema Rendering](./schema-rendering.md) for details.
See [Protocol Overview](/protocol/overview) for specs.
Add front matter for page metadata:
---
title: My Page Title
description: Page description for SEO
---
# My Page TitleEdit .vitepress/config.mts to customize:
- Navigation menu - Top navigation bar
- Sidebar structure - Left sidebar per section
- Site metadata - Title, description, base URL
- Theme settings - Colors, fonts, layout
- Search - Local search configuration
- Social links - GitHub, Twitter, etc.
Add custom Vue components in .vitepress/theme/:
.vitepress/
└── theme/
├── index.ts # Theme entry
└── components/ # Custom components
└── MyComponent.vue
The documentation is automatically deployed to GitHub Pages when changes are pushed to the main branch.
See .github/workflows/deploy-docs.yml for the deployment configuration.
# Build the docs
pnpm docs:build
# Deploy to GitHub Pages
# (This is typically done automatically via GitHub Actions)Before committing documentation changes:
-
Build locally - Ensure no build errors
pnpm docs:build
-
Check links - Verify all internal links work
# VitePress will warn about dead links during build -
Preview - View the built site
pnpm docs:preview
-
Proofread - Check spelling and grammar
We welcome documentation contributions! Please read our Contributing Guide for details.
To contribute documentation:
- Fork the repository
- Create a branch:
git checkout -b docs/your-improvement - Make your changes in the
docs/directory - Test locally with
pnpm docs:dev - Commit and push
- Open a pull request
- Use sentence case for headings
- Keep paragraphs short and focused
- Include code examples with explanations
- Add screenshots for visual features
- Link to related documentation
- Keep examples simple and runnable