Quick Start (v2)
1. Initialize a new project
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: Welcomedescription: 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
lito dev -i ./my-docs4. Build for production
lito build -i ./my-docs -o ./distTip
v2 supports all 20+ MDX components out of the box. See the Components Reference for the full list.
Was this page helpful?