For contributors and maintainers
How Agora's documentation is organized
This page is for anyone writing or maintaining Agora's documentation. It explains where each kind of page lives, how the website is built from the repository, and what to update when Agora changes. If you're looking for help using Agora, start at the documentation home instead.
Where each page belongs
Every page is written for one audience. The website's sidebar is built around these audiences.
| Audience | Pages | Covers |
|---|---|---|
| Desktop app users | Help & guide, Troubleshooting Agora, FAQ, and the website's install and tour pages | Doing things in the app, fixing problems, and quick answers, using the labels on screen |
| CLI users | CLI reference, CLI troubleshooting, Data, logs, and support evidence | Commands, flags, output, exit codes, diagnosis, and support evidence |
| Contributors | Developing Agora, Layer ownership | Local builds, tests, validation gates, and which layer owns what |
| Catalog curators and reviewers | Catalog curation reference, Code of Engagement | Writing catalog entries and the rules for reviews |
| Plugin authors | Community plugins, Content providers, Publishing, Implementation status | Writing, publishing, and updating plugins, and what the plugin host supports today |
| Maintainers and operators | Releasing Agora, Governance operations | Releases, signing, the governance pipeline, and incident recovery |
Desktop pages explain what a player sees and does. They don't describe how Agora works behind the scenes, and they don't ask players to use a terminal. CLI pages can assume a reader who is comfortable with a shell, logs, and Minecraft modding. Contributor pages can assume knowledge of the codebase.
Superseded plans and finished review logs are not kept as pages. Git history keeps them, and git log --diff-filter=D finds a deleted file by path. A page that no longer matches the product is worse than no page, so update or delete it rather than archiving it.
How the website is built
The website keeps no copy of its own. Two sources feed it:
- Help & guide comes from
desktop/src/data/guideContent.ts, the same file the app's built-in guide uses, published at/docs/guides/. The app and the website can't describe the product differently. - Every other page comes from markdown.
scripts/build_docs_web.pyreads every file underdocs/plus the root-levelCODE_OF_ENGAGEMENT.mdandREGISTRY_CURATION_REFERENCE.md, and writesdocs-web.json, which the site loads. Each file becomes/docs/<slug>, its first heading becomes the page title, and relative links to other docs are rewritten to their website addresses.
Files under docs/plugins/fixtures/ describe test fixtures, so they stay in the repository and are not published.
The install, tour, and documentation home pages are hand-written in web/src/app/docs/.
Placing a page in the navigation
DOC_CATEGORIES in scripts/build_docs_web.py gives each file an audience and a group:
| Audience | Sidebar section |
|---|---|
desktop | Desktop App Users, below the hand-written install, tour, and Help & guide links |
user | CLI Users |
developer | For contributors and maintainers, collapsed until opened or until you're on one of its pages |
internal | Unsorted pages, collapsed, and shown only when such a page exists |
A new file with no rule lands in internal. It's still published so links to it work, but it carries a banner saying it may be out of date. Add a rule for every new page, so that nothing is left in that section.
After changing a page or a rule, run python scripts/build_docs_web.py to rebuild docs-web.json. A running development server caches the file, so restart it to see the change.
Links
- Between markdown pages, use relative links such as
./CLI.md. They work on GitHub and are rewritten for the website. - From a markdown page to a Help & guide topic or a hand-written page, use the full address, for example
https://agoramc.com/docs/guides/launching.scripts/check_docs.pyrejects site-relative links like/docs/guides/launchingin markdown, because they would be broken on GitHub.
Sources of truth
- The current interface is the source of truth for button names and navigation.
crates/agora/src/main.rsis the source of truth for CLI syntax.docs/CLI.mdexplains how to use it.desktop/src/data/guideContent.tsis the source of truth for the in-app guide and the website's Help & guide.REGISTRY_CURATION_REFERENCE.mdis the source of truth for catalog manifests.CODE_OF_ENGAGEMENT.mdis the source of truth for review conduct.- Workflow files are the source of truth for automated release triggers.
- Secret values never belong in documentation, examples, screenshots, or support bundles.
When something changes
A feature change isn't finished until its documentation has been checked.
- Update the in-app guide when a user-visible workflow, label, warning, or recovery action changes. This updates the website's Help & guide too.
- Update the desktop troubleshooting page and FAQ when a fix, label, or answer they mention changes.
- Update
docs/CLI.mdand the CLI help when a command, flag, output shape, or exit code changes. - Update the hand-written pages in
web/src/app/docs/when installation, first run, or the screenshot tour changes. - Give any new markdown page a rule in
DOC_CATEGORIES. - Update operator documents when workflows, variables, signing, or governance state change.
- Test any documented command against a temporary data directory.
- Run
python scripts/check_docs.pyto check links and known wording problems. - Link to the page that already explains a procedure instead of copying it.
The root README
Keep the root README.md short and in this order: what Agora is, download and documentation links, the first-run path, key capabilities, safety and recovery limits, project principles, a short contributor quick start, maintainer references, and license and community links. Incident procedures and full environment tables don't belong there.
docs/README.mdView on GitHub