|
2 | 2 |
|
3 | 3 | A reusable documentation-site toolkit for LobeHub component libraries — a React Router + Vite static-site stack, packaged the way `dumi` + `dumi-theme-lobehub` used to be combined, but installable across repos. |
4 | 4 |
|
5 | | -`lobe-ui` is the first consumer (dogfooding): the site under `packages/docs-kit/site` compiles component docs, standalone demos, a search index, and a changelog page into a static build. Consumer repos hold only content and a config file — the kit owns every build tool config internally. |
| 5 | +It powers [ui.lobehub.com](https://ui.lobehub.com): the site under `site/` compiles component docs, standalone demos, a search index, and a changelog page into a static build. Consumer repos hold only content and a config file — the kit owns every build tool config internally. |
6 | 6 |
|
7 | 7 | ## Consumer surface |
8 | 8 |
|
@@ -44,16 +44,14 @@ lobedocs typegen # react-router typegen |
44 | 44 | ### `docs.config.ts` |
45 | 45 |
|
46 | 46 | ```ts |
47 | | -import { defineDocsConfig } from './packages/docs-kit/src/config'; |
48 | | - |
49 | | -export default defineDocsConfig({ |
| 47 | +export default { |
50 | 48 | atomDirs: [{ dir: 'src' }], |
51 | 49 | title: 'Lobe UI', |
52 | 50 | description: '...', |
53 | 51 | siteUrl: 'https://ui.lobehub.com', |
54 | 52 | navSections: {/* path -> nav section label */}, |
55 | 53 | themeConfig: {/* ... */}, |
56 | | -}); |
| 54 | +}; |
57 | 55 | ``` |
58 | 56 |
|
59 | 57 | | Field | Type | Purpose | |
@@ -100,7 +98,14 @@ Both routes are available from `lobedocs dev` and are prerendered into the stati |
100 | 98 | - `src/cli/` — `lobedocs` command implementations |
101 | 99 | - `src/config.ts` — `defineDocsConfig`, config loading/caching |
102 | 100 |
|
103 | | -## Roadmap |
| 101 | +## Development |
| 102 | + |
| 103 | +```bash |
| 104 | +pnpm install |
| 105 | +pnpm dev # lobedocs dev against playground/ |
| 106 | +pnpm build:playground # full static build of playground/ |
| 107 | +pnpm test # vitest, run from playground/ as the consumer cwd |
| 108 | +pnpm lint && pnpm type-check |
| 109 | +``` |
104 | 110 |
|
105 | | -This package is at Phase 1 of a four-phase extraction (lobe-ui-only today, `lobe-editor` adoption later). See the full plan, including Phase 2's giscus/changelog/multi-atomDir work and Phase 3/4's `lobe-editor` migration, in |
106 | | -[`docs/superpowers/specs/2026-07-16-docs-kit-extraction-design.md`](../../docs/superpowers/specs/2026-07-16-docs-kit-extraction-design.md). |
| 111 | +`playground/` is a minimal consumer repo (a workspace package linking this kit) used for local development, the compiler integration tests and the CI build smoke test. Commits follow gitmoji + conventional commits; releases are published to npm by semantic-release from `main`. |
0 commit comments