Add a new tunnels page with verified, up-to-date CLI examples Remove deprecated `--daemon` usage and clarify QR/password behavior Add docs validation tooling and docs-source workflow for packaging and sync
1.4 KiB
1.4 KiB
Docs Authoring Guide
This package is docs content source-of-truth for OpenChamber.
Add a new docs page
-
Create a new file in
packages/docs/content/docs/.- Example:
packages/docs/content/docs/remote-access.mdx
- Example:
-
Add frontmatter at top:
--- title: Remote Access description: Access OpenChamber from outside your local network. --- -
Use route-safe naming:
foo.mdx->/foo/folder/index.mdx->/folder/folder/bar.mdx->/folder/bar/
-
Run validation:
bun run docs:validate
Add a new sidebar section
Edit packages/docs/sidebar.config.json.
Example:
{
"label": "Advanced",
"items": [{ "label": "Remote Access", "link": "/remote-access/" }]
}
Rules:
- use trailing slash in links (
/page/) - every sidebar link must map to an existing MDX file
- keep section labels short and task-oriented
Sync into openchamber-website
openchamber-website renders/deploys docs via Starlight in apps/docs.
After docs content updates here:
- copy
packages/docs/content/docs/*->openchamber-website/apps/docs/src/content/docs/* - map
packages/docs/sidebar.config.jsonintoopenchamber-website/apps/docs/astro.config.mjssidebar - run docs checks/build in website repo
Automation support exists in .github/workflows/docs-source.yml (release/manual packaging of docs source artifact).