Skip to content

Fix docs that disagree with the code, and golden build errors - #42

Merged
modem7 merged 4 commits into
masterfrom
docs-accuracy
Nov 6, 2026
Merged

modem7 merged 4 commits into
masterfrom
docs-accuracy

Conversation

@modem7

@modem7 modem7 commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Summary

Documentation that disagreed with the code, found by a docs consistency check and each one confirmed against the source before changing it. One small code fix, which the changelog already promised.

  • README install line pinned @v0.2.0; the version and latest tag are 0.3.0.
  • README said commands that report data take --json. Only list, diff and watch do.
  • README check row omitted --pdf-dir.
  • mypy was missing from the must-pass checks in README, CLAUDE.md and CONTRIBUTING.md. CI runs it.
  • 0.3.0 changelog said the old sheettext.status name still works. It was removed.
  • The ddtools init template told new repos to install fonts-dejavu-core, and its CI installed it. The fonts ship with the package since 0.3.0. Both are removed.
  • README said "desloppify at 0.3.0" while the scorecard shows desloppify v1.0. It now names both versions.
  • The 0.3.0 changelog listed deprecations three times, the error handling change twice and the watch fix twice. Each is now one entry with no facts dropped.
  • golden check and golden update printed Build failed in ... on stdout, although the 0.3.0 notes say every DdtoolsError goes to stderr. They now let BuildError reach main(), like build. The test was updated first and failed before the change. This changes where that message goes, so scripts that read stdout for it must read stderr. It is noted under Unreleased.

Test plan

  • pytest: 287 passed
  • ruff check . and ruff format --check .: clean
  • mypy: no issues
  • CI passes

The README install line pinned v0.2.0 although the version is 0.3.0. The
--json note said every reporting command takes it, but only list, diff
and watch do. The check row left out --pdf-dir. The must-pass checks in
README, CLAUDE.md and CONTRIBUTING.md omitted mypy, which CI runs.

The 0.3.0 changelog said the old sheettext.status name still works; it
was removed. The repo template told new repos to install
fonts-dejavu-core and its CI installed it, although the fonts have shipped
with the package since 0.3.0.
golden check and golden update printed "Build failed in ..." on stdout
although the 0.3.0 notes say every DdtoolsError goes to stderr. They now
let BuildError reach main(), so they match build. The test is updated
first to expect stderr.

The README said "desloppify at 0.3.0" while the scorecard shows desloppify
v1.0. It now names the ddtools version and the desloppify version.

The 0.3.0 changelog listed the deprecations three times, the error handling
change twice and the watch fix twice. Each is now one entry, with no facts
dropped.
@modem7 modem7 changed the title Fix docs that disagree with the code Fix docs that disagree with the code, and golden build errors Nov 6, 2026
The Template repo check compares init output with dnd-campaign-template,
which still has the old fonts text. Restore the two template files and drop
the changelog line until both repos can change together.
dnd-campaign-template now matches (its PR 8 is merged), so the init output
and the template repo agree again.
@modem7
modem7 merged commit 2066525 into master Nov 6, 2026
9 checks passed
@modem7
modem7 deleted the docs-accuracy branch November 6, 2026 09:36
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