mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-25 04:35:37 -04:00
34 lines
832 B
Markdown
34 lines
832 B
Markdown
# OpenCode documentation
|
|
|
|
The V2 documentation is a Mintlify site deployed from `packages/docs` on the `dev` branch.
|
|
|
|
## Local preview
|
|
|
|
From this directory, run:
|
|
|
|
```bash
|
|
bun dev
|
|
```
|
|
|
|
The preview opens at `http://localhost:3333` and reloads when MDX or `docs.json` changes.
|
|
|
|
Validate changes before opening a pull request:
|
|
|
|
```bash
|
|
bun validate
|
|
bun broken-links
|
|
```
|
|
|
|
The V2 theme token reference is generated from
|
|
`packages/tui/src/theme/v2/schema.ts`. Regenerate it after schema changes:
|
|
|
|
```bash
|
|
bun run generate
|
|
```
|
|
|
|
`bun validate` checks that the committed snippet is current. The repository's
|
|
generation workflow also refreshes it on pushes to `dev`, so Mintlify always
|
|
receives the generated MDX as part of the published docs tree.
|
|
|
|
The hosted preview is available at [opencode.mintlify.site](https://opencode.mintlify.site).
|