Skip to content

docs: overhaul the documentation and add the shared checker - #11

Merged
tcheeric merged 5 commits into
masterfrom
develop
Sep 1, 2026
Merged

tcheeric merged 5 commits into
masterfrom
develop

Conversation

@tcheeric

Copy link
Copy Markdown
Contributor

Documentation only. No version bump: nsecbunker-java stays at 0.2.0, which is
what is published, because the jar is unchanged.

What is here

  • Version drift corrected and a broken licence link fixed.
  • scripts/doccheck.py, the shared documentation checker: it fails when a guide
    names a type or method that does not exist, a link resolves to nothing, or an
    install snippet quotes a version other than the one being built.

Verification

GitHub Actions runners are not being assigned org-wide at the moment, so CI here
may not report. doccheck.py was run locally.

tcheeric added 5 commits August 31, 2026 14:27
The Maven snippets pinned 0.1.1 and the Gradle snippet 0.1.0, while the project
is at 0.2.0. The licence link pointed at LICENSE, but the file is LICENSE.md.

- Install snippets -> 0.2.0
- Note that imani-bom consumers should omit the version so all six modules move
  together
- Fix the licence link

Verified: mvn test passes; doccheck clean.
Three fixes found while extending the checker across the rest of the stack:

- Index .ts and .tsx declarations and exported React components. Several repos
  ship a TypeScript client whose types are legitimately named in docs; without
  this the checker reported them all as unknown.
- Skip plans/, specs/, superpowers/, and archive/ directories. Those documents
  quote link lines destined for other files, whose relative paths are correct
  only from the target, so checking them reports the quoting rather than a
  broken link.
- Extend the built-in skip list with JDK, Spring, browser, and node types
  commonly named in prose.
The link checker special-cased http, https, and mailto. A nostr: URI in a README
was therefore resolved as a relative path and reported broken. Any scheme before
the first slash now counts as external.

Verified against a fixture: scheme URIs skip, a genuinely broken relative link
is still reported and still exits non-zero.
A superseded checkout keeps its documentation as written; repairing its links
would imply the tree is maintained. A repository can now declare
'doccheck: skip-links' in .doccheck-allow to record that decision.

Opt-in only, verified against a fixture: without the marker a broken link is
still reported and still exits non-zero.
The class check indexes sibling repositories because docs legitimately cite types
in them. It guarded against a single-repo checkout with a MIN_TYPES=50 threshold,
which is unsound: a repository with its own sources easily exceeds 50 while still
lacking every sibling, so in CI the check ran against an incomplete index and
reported cross-repo references as unknown. Simulating a CI clone confirmed it:
cashu-mint alone produced 35 false unknowns.

Detect the case directly instead, by asking whether any sibling repository is
present, and handle the partial workspace between the two extremes:

  single repo      class check skipped; links and config still checked
  partial          unresolved names reported but not failed, since a name may
                   live in a repo that is not checked out
  full workspace   class check enforced

Verified in all three modes, and against a fixture with a genuinely broken link
and a fake class name, which still fails and still exits non-zero.
@tcheeric
tcheeric merged commit a8165b7 into master Sep 1, 2026
6 of 8 checks passed
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