LobeHub Docs Kit
Static documentation sites for React component libraries, driven by MDX and one config file.
Send this prompt to your agent to set up and write docs
Read https://docs-kit.lobehub.com/skills.md and follow it to set up docs with @lobehub/docs-kit.What a docs page gets
Every tile is rendered by this site: the demo block, search, theme switch and the llms.txt it serves.
Files in, pages out
Switch tabs: each file on the left renders live on the right.
---
title: Button
description: Button triggers an action.
category: General
---
import Variants from './demos/Variant.tsx?demo';
<Demo of={Variants} title="Variants" />Built in, not bolted on
What the kit takes care of so your repository doesn't have to.
Zero build config
The CLI owns the Vite and React Router config, so your repository keeps only content.
Static output
Every page, overview and demo is prerendered to HTML that any static host can serve.
Audited builds
Broken links, missing demos and drifting API defaults fail the build, not the reader.
Full-text search
A Pagefind index is built from the rendered pages, in dev and in production.
Docs for agents
llms.txt, skills.md and per-page markdown come from the same MDX as the pages.
Light and dark
The LobeHub look in light and dark, with a per-demo appearance switch.