How to register a repo
There are two registries and they do different jobs. The catalog lists every engineering repo and links out to GitLab. The aggregation manifest copies the docs/ of a few repos into the portal.
Every repo goes in the catalog. Aggregation is opt-in and deliberate: it is reserved for Tier-1 services, where the stability risk lives. An aggregated repo also appears in the catalog, with an extra link to its docs.
Add a repo to the catalog
-
Open
repos-inventory.jsonand add an entry to its discipline group. The groups arefrontend,backend,qa,infraandplatform. -
Fill in the fields. All are required except
module. -
Regenerate the catalog and validate:
You should see the updated count:
The /repos/ page is generated from this file on every build. Never edit it by hand. Malformed JSON or an entry missing a required field breaks the build, naming the offending entry.
Add a repo's docs to the portal
Before registering a repo in the manifest, that repo needs:
- A
docs/directory with at least one.mdor.mdxpage - A
CODEOWNERScovering that directory, so its docs go through review
Then:
-
Add an entry to
docs-manifest.yaml: -
Choose the
slugcarefully. It defines the URL at/repos/<slug>/and never changes, not even when the repo moves inside GitLab. If the repo moves, updategitlab_pathand keep theslug: the portal URLs keep working. -
If the repo is private, export a read token before aggregating:
-
Pull the docs and build:
Verification
pnpm run aggregate rebuilds all of docs/<locale>/repos/<slug>/ from scratch, so the portal is always reproducible from the manifest and the source repos. You should see:
Open /repos/checkout-service/ and confirm every page shows its provenance header with the repo, the commit, the date and the owner. An aggregated page without provenance breaks the build.
What happens with the language
Aggregated pages are copied as written in the source repo, into both language trees. They are not translated: whoever wrote them owns their content, and the portal only publishes them with their provenance.
Related
- How to contribute to the portal — the flow for a hand-written page

