This is the Bitfocus Companion documentation website, built with Docusaurus.
Important
Read the Synced content — DO NOT EDIT section before changing any file. Some directories are mirrors of another repository. Editing them here is never correct, and your changes would be silently overwritten on the next sync.
The following directories are synced from the bitfocus/companion repository and must not be edited in this repository under any circumstances. Each one is marked with an empty __DO_NOT_EDIT__ file and is listed in .prettierignore.
| Directory in this repo | Source of truth |
|---|---|
user-guide/ |
bitfocus/companion, branch main, path docs/user-guide/ (shown on the site as the "Beta" version) |
versioned_docs/version-v4.3/ |
bitfocus/companion, branch stable-4.3, path docs/user-guide/ |
versioned_docs/version-v4.2/ |
bitfocus/companion, branch stable-4.2, path docs/user-guide/ |
versioned_docs/version-v4.1/ |
Manually imported snapshot — not editable anywhere; do not touch |
whats-new/ |
bitfocus/companion, branch main, path docs/user-guide/9_whatsnew/ |
This means no edits at all to these trees: not content, not typo fixes, not formatting, not frontmatter, not link corrections, not renames or deletions. Even a one-character change is out of scope.
Do not apply it here. Instead:
- Stop — do not edit the file in this repository.
- Report the needed change to the user, clearly and specifically:
- the exact file (path within this repo),
- the corresponding source location from the table above (repo, branch, and
docs/...path), - the precise change required (quote the current text and the proposed text).
- Explain that the fix must be made in the
bitfocus/companionsource repository, on the branch shown above, so that it flows back here on the next sync.
To find the source for a specific page, you can also use the "Edit this page" link at the bottom of the rendered page, or the editUrl logic in docusaurus.config.ts.
These directories are owned by this website repo and are safe to edit normally:
for-developers/— developer documentation (modules, core, Satellite API, git workflows, etc.)satellite/— Companion Satellite documentationsrc/— site source (React/CSS)sidebars/— sidebar definitions (note:sidebars/user-guide.tsandsidebars/whats-new.tsdescribe synced content but the sidebar files themselves live here)static/— static assetsdocusaurus.config.ts,package.json, and other root config files
When in doubt about whether a path is editable, check for a __DO_NOT_EDIT__ marker in the directory (or an ancestor) and consult the table above. If it's synced, report instead of edit.
- Install:
yarn - Local dev server:
yarn start(runs on port 4005) - Build:
yarn build - Format:
yarn format(check withyarn format:check) — note synced trees are excluded via.prettierignore - Typecheck:
yarn typecheck
Deployment happens automatically on pushes to the main branch.