Skip to content

docs: switch sphinx-codeautolink to released 0.19.0, drop branch pin - #27

Merged
petercorke merged 3 commits into
mainfrom
docs/fix-image-sidebar
Jul 30, 2026
Merged

docs: switch sphinx-codeautolink to released 0.19.0, drop branch pin#27
petercorke merged 3 commits into
mainfrom
docs/fix-image-sidebar

Conversation

@petercorke

Copy link
Copy Markdown
Owner

felix-hilden/sphinx-codeautolink#202 (typing.Self return-annotation resolution) merged upstream 2026-07-29 and shipped in the 0.19.0 PyPI release the same day. Verified directly: downloaded and inspected the 0.19.0 wheel, confirmed the same Self-handling code as the branch we'd been pinning to, and rebuilt the docs against it -- chained method calls like Image.Random(...).print() now cross-link correctly using the real release.

Pin sphinx-codeautolink>=0.19.0 in pyproject.toml's docs extra (rather than leaving it unpinned) so the fix is guaranteed rather than incidentally whatever resolves, and drop the git+https branch override from docs/requirements.txt entirely. Removes the corresponding tech-debt.md entry about pinning CI to an unmerged branch, and adds a second real-world example (PR #24) of the ci.yml/pyproject.toml drift problem to the micromamba entry.

felix-hilden/sphinx-codeautolink#202 (typing.Self return-annotation
resolution) merged upstream 2026-07-29 and shipped in the 0.19.0 PyPI
release the same day. Verified directly: downloaded and inspected the
0.19.0 wheel, confirmed the same Self-handling code as the branch we'd
been pinning to, and rebuilt the docs against it -- chained method calls
like Image.Random(...).print() now cross-link correctly using the real
release.

Pin sphinx-codeautolink>=0.19.0 in pyproject.toml's docs extra (rather
than leaving it unpinned) so the fix is guaranteed rather than
incidentally whatever resolves, and drop the git+https branch override
from docs/requirements.txt entirely. Removes the corresponding
tech-debt.md entry about pinning CI to an unmerged branch, and adds a
second real-world example (PR #24) of the ci.yml/pyproject.toml drift
problem to the micromamba entry.
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Root cause of rankfilter() missing from the sidebar: image_class.rst's
autosummary blocks lost their :toctree: stubs argument in commit
333fff7 (2026-03-23), which silently broke stub-page generation for
every Image method, not just rankfilter -- the sidebar (and every
per-method doc page) has been effectively empty on the live published
site since then. Restored :toctree: stubs to all blocks, fixed the
~rank -> ~rankfilter entry, and added a "Deprecated aliases" section
(matching the existing sources.rst convention) so deprecated methods
get a findable migration page instead of silently disappearing.

Also cuts docs.yml/conf.py over from sphinx_autorun to sphinx_pyrunblock
(now published to PyPI as sphinx-pyrunblock 1.0.0), and bumps docs.yml's
actions to current majors (checkout, setup-python, upload-artifact,
upload-pages-artifact, deploy-pages).

Verified with real local builds throughout (250+ Image stub pages now
generate; rankfilter's deprecation notice hyperlinks correctly).
…olving docs conflicts

# Conflicts:
#	tech-debt.md
@petercorke
petercorke merged commit 982f746 into main Jul 30, 2026
17 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