Jump to content

MindAttic.Docs/operations

From MindAttic Docs

Operations

How the hub runs, how to rebuild it by hand, and what to check when a page is missing.

When it runs

Trigger Mode Started by
Push to main full GitHub (a change to the scripts or the hub's own docs)
Daily, 06:17 UTC full the workflow's schedule
A repo's docs changed incremental the wiki sync job: it compares docs-signatures.ps1 with tools/sources.json on origin/main and runs gh workflow run docs.yml
On demand either gh workflow run docs.yml -R mindattic/MindAttic.Docs -f full=true

The workflow's rebuild job commits its output as Rebuild hub aggregation (MAT-T352). Those commits are the build's own; never edit or revert them by hand. One run at a time: a burst of triggers collapses into one running and one pending run, and each run works out what changed for itself.

The wiki sync (MindAttic.Docs.Wiki.Sync, MindAttic.Scheduler, every 5 minutes) then publishes the new main, changed pages only. A docs edit in any repo is on the wiki in about 10 minutes.

Rebuild by hand

From this repo, with gh signed in:

powershell -File tools/build-hub.ps1          # incremental
powershell -File tools/build-hub.ps1 -Full    # every repo
powershell -File tools/build-hub.ps1 -NoClone # only repos checked out beside this one

A local run rewrites the generated files (every repo folder, index.md, toc.yml, README.md, docfx.json, tools/sources.json) and refreshes tools/PORTFOLIO.snapshot.md from the workspace. Prefer the workflow: it is the build that publishes. To try a change without touching this checkout, pass -HubRoot a scratch copy of the repo.

Checks after a change

  1. The run is green: gh run list -R mindattic/MindAttic.Docs -L 3.
  2. Its log names the repos restaged, the excluded private repos, and the secret-scan result.
  3. The page is live: https://mindattic.com/wiki/docs/index.php?title=<Repo>&action=raw.

When a repo is missing

  • Not tagged wip, or private: by design, it is not in the hub.
  • It is in the coverage report: every public wip repo that is not a section is named, with the reason, in the build log (not in the hub: <repo> (<reason>)), under "Not in the hub yet" on the homepage and in the README's build stats. Reasons: no README.md and no docs/, the clone failed, or staging failed. It is retried on the next run, because a repo that failed to stage is left out of tools/sources.json. A repo with docs/ but no README.md is published, with its docs/overview.md (else docs/SPEC.md) as its front page.
  • On the hub but not the wiki: the sync has not run yet, or it failed; see MindAttic.Docs.Wiki's sync.log.

Credentials

The workflow reads the org's repo list with the MINDATTIC_GH_TOKEN repo secret (read access only). Locally the owner's gh login is used. No credential is ever written into this repo, and every staged page passes the secret scan.

From MindAttic.Docs/docs/operations.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.