Skip to content

Fix broken autoclass:: references on matrices/planning doc pages - #15

Merged
petercorke merged 1 commit into
mainfrom
fix/docs-matrices-planning-autoclass
Sep 3, 2026
Merged

petercorke merged 1 commit into
mainfrom
fix/docs-matrices-planning-autoclass

Conversation

@petercorke

Copy link
Copy Markdown
Owner

Summary

Both docs/source/matrices.rst and docs/source/planning.rst referenced pgraph.PGraph.PGraph, a class that no longer exists post-rename (it's now _BaseGraph) -- and in fact never existed at that dotted path even before the rename, since the src/pgraph/ layout migration changed the real import path without these two files being updated to match (the same bug already fixed for every other doc page in the type-hints pass, but missed here).

autodoc silently failed to import the class on both pages, so "Convert graph to matrix form" and "Path planning" rendered as bare headings with zero API content -- in both the HTML and PDF (verified with a real latexmk run, 92-page PDF) builds. Caught during final pre-1.0.0 review of a built PDF.

Test plan

  • 45/45 tests pass
  • HTML build: matrices.html/planning.html now show 5/3 real method entries respectively (were 0/0)
  • Real latexmk -pdf build succeeds; verified the generated .tex for the "Convert graph to matrix form" chapter contains the full class signature, docstrings, and executed runblock output

Both docs/source/matrices.rst and docs/source/planning.rst referenced
pgraph.PGraph.PGraph, a class that no longer exists post-rename (it's
now _BaseGraph) -- and in fact never existed at that dotted path even
before the rename, since the src/pgraph/ layout migration changed the
real import path without these two files being updated to match (the
same bug already fixed for every other doc page in the type-hints
pass, but missed here).

autodoc silently failed to import the class on both pages, so
"Convert graph to matrix form" and "Path planning" rendered as bare
headings with zero API content -- in both the HTML and PDF (verified
with a real latexmk run) builds. Caught during final pre-1.0.0 review
of a built PDF.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@petercorke
petercorke merged commit c133638 into main Sep 3, 2026
9 checks passed
@codecov

codecov Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.05%. Comparing base (55c4a0c) to head (97bdd5e).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #15   +/-   ##
=======================================
  Coverage   85.05%   85.05%           
=======================================
  Files           2        2           
  Lines         776      776           
=======================================
  Hits          660      660           
  Misses        116      116           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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