Skip to content

docs: add CLAUDE.md with working notes for this repo - #868

Merged
mik-tf merged 1 commit into
developmentfrom
docs/claude-md
Jul 28, 2026
Merged

docs: add CLAUDE.md with working notes for this repo#868
mik-tf merged 1 commit into
developmentfrom
docs/claude-md

Conversation

@mik-tf

@mik-tf mik-tf commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Captures what was learned across #853#867 so the next person (or agent) picking this repo up does not rediscover it the hard way.

Contents

  • Layout — the four doc trees are separate Docusaurus plugin instances, so a relative link cannot cross from farmers/ to labs/
  • Toolingyarn is not installed and yarn.lock is gitignored while package-lock.json is committed, so use npm rather than the Makefile's yarn targets. Also: lab is a Forgejo toolkit and does not apply to this GitHub repo
  • CI — what gates a merge, and why external link rot deliberately does not
  • Conventions — the code-block rules check_docs_commands.py enforces, and why shellcheck rather than bash -n
  • Traps that actually bit — the farmers/labs twin pages, GitHub not redirecting /issues/N after a rename, the link checker only crawling ~93 pages, and the two Docusaurus slug rules that make correct-looking links break

One detail worth noting

The broken wipe loop quoted as an example is tagged ```text deliberately. On the first run, check_docs_commands.py failed on this very file — it lints untagged blocks, and a deliberately-broken illustration looks exactly like a broken command. The script's own advice message pointed at the fix.

CLAUDE.md sits at the repo root, outside every docs plugin path, so it is not published to the site.

Captures what was learned across PRs #853-#867 so the next session does
not rediscover it: the four-tree layout and why relative links cannot
cross trees, npm-not-yarn, the CI gates and why external links are
deliberately not gating, the code-block conventions the linter enforces,
and the traps that actually bit -- farmers/labs twin pages, GitHub not
redirecting /issues/N after a repo rename, the link checker only crawling
~93 pages, and the two Docusaurus slug rules that make correct-looking
links break.

The broken wipe loop quoted as an example is tagged ```text on purpose:
it is a deliberately broken illustration, and check_docs_commands.py
fails the build on it otherwise -- which it did, on the first run.
@mik-tf
mik-tf merged commit f0c8223 into development Jul 28, 2026
1 check passed
@mik-tf
mik-tf deleted the docs/claude-md branch July 28, 2026 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant