Skip to content

docs: keep operational facts in sync #152

Open
8 of 9 issues completed
Open

Description

@uniqueg

Why

The docs describe things that change without the docs noticing: which services are deployed and where, their versions and access modes, which repositories are maintained or archived, which plugins and demonstrators exist. Each time something moves (a repo revived or archived, a deployment upgraded, a TES switched to tokens), some page goes stale, and we only notice when someone reads it (docs#81, #82 and #89 were mostly about that).

Ideas, from cheap to thorough

  1. One source of truth per kind of fact, and link instead of copying.
    • Services, endpoints, versions, access: the Cloud Registry (its UI and API, and each service's service-info). Pages say what a service is for and link to its registry entry, but don't list addresses or versions.
    • Repositories and their state: the org's repository list (maintained or archived), not prose.
    • Component docs: each repository's own docs site; this site links to them.
  2. Generate the volatile parts at build time. A small MkDocs hook or macro that reads the Cloud Registry API (and the GitHub API for repository states) and renders tables, e.g. "services of type TES with their access modes". Pages then can't drift, and a failing fetch fails the build instead of showing stale data.
  3. Check the rest in CI.
    • A scheduled link check (weekly), which also catches moved or archived targets.
    • A scheduled check that every service URL named in the docs is in the registry and answers service-info.
    • A list of the repositories the docs mention, compared with their GitHub state (archived or not): mentions of archived repositories fail unless marked as historical.
  4. Make changes reach the docs.
    • The PR templates of the service repositories get a checkbox "user-facing change: docs site updated or issue opened".
    • Deployment runbooks end with a step "update the registry entry", so source 1 stays right.
    • A "last verified" date in the front matter of pages with operational facts, and a scheduled job that opens an issue for pages not verified in 6 months.

Proposal

Start with 1 and the link check of 3 (hours), then 2 for the services tables (a day), then the rest as needed.

Done when

  • An agreed approach (this issue), split into PR-sized sub-issues.
  • The first sub-issues are done: pages point to the registry instead of listing endpoints, and a scheduled link check runs.

Sub-issues

Sub-issues

8 of 9 Issues completed
Loading 9 sub-issues

Metadata

Metadata

Assignees

Labels

priority: mediumstatus: blockedtype: docsworkload: days

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions