Quick Start (v2)

1. Initialize a new project

Terminal window
lito init -o ./my-docs -n "My Docs"

This creates a docs folder with docs-config.json and starter pages.

2. Add MDX content

Create introduction.mdx:

---
title: Welcome
description: My documentation homepage
---
# Welcome
<Alert type="info">
This site is built with Lito v2!
</Alert>
<CardGroup>
<Card title="Guide" icon="lucide:book" href="/guide">
Read the full guide.
</Card>
<Card title="API" icon="lucide:code" href="/api">
Explore the API reference.
</Card>
</CardGroup>

3. Start the dev server

Terminal window
lito dev -i ./my-docs

4. Build for production

Terminal window
lito build -i ./my-docs -o ./dist