Repository navigation
Build the docs on Python 3.12 and check them on every PR - #589
tonylampada wants to merge 1 commit into
Conversation
The docs job has failed since v1.7.2: pymdown-extensions 12.2 changed Highlight.__init__, mkdocstrings fixed it in 1.0.7 and dropped Python 3.10 in the same release, so the job's Python 3.10 resolves the old mkdocstrings with the new pymdown-extensions. Build on 3.12 with the newest tools instead; nothing is pinned. - test.yml: a docs job runs the same build on every PR. - publish.yml: workflow_dispatch from main deploys the docs alone; the PyPI jobs run only on a release. - mkdocs.yml: drop the Quickstart nav entry (no such page; Home has the section) and point Changelog at CHANGELOG.md on GitHub. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TrailPlan. No plan block or PR draft came with the brief. I wrote both from it. The plan block is folded below, and the PR draft was this PR's first body. There was no plan gate. Changed from the brief while building
Diff gate: 1 round, Pruned: nothing. No tests were added, since this PR changes only CI and config. Bot review: none for this repo. Plan blockPlan block: fix the SDK docs build (roboflow-python)outcome: the reference site (roboflow.github.io/roboflow-python, built by cause (confirmed): pymdown-extensions 12.2 (2026-10-10) made touches:
calls:
tests (no unit tests: CI/config only):
not here: Diff gate, round 1 (local paths replaced)Diff gate reviewBase: FindingsNone. Reviewed correctness, architecture, errors, naming, size, tests, and scope against the supplied plan and repository rules. All five changed files are covered by the plan. The release-only guard preserves package publishing on releases. Validation
Notes
verdict: go |
Description
The reference site at https://roboflow.github.io/roboflow-python still shows 1.7.1, so
Project.move_images_to_batchand everything else from 1.7.2 to 1.7.4 is missing. Its docs job inpublish.ymlhas failed on every release since v1.7.2 (v1.7.4 run). pymdown-extensions 12.2 changedHighlight.__init__, and mkdocstrings fixed that in 1.0.7 (mkdocstrings#829) but dropped Python 3.10 in the same release. The job runs 3.10, so pip pairs mkdocstrings 1.0.6 with pymdown-extensions 12.3 andmkdocs buildraises aTypeError. No PR builds the docs, so three releases shipped with it broken.What changes:
docsjob intest.yml).publish.ymlby hand frommain. A manual run deploys the docs and skips PyPI.Quickstartis gone (no such page; Home has that section).Changelogopens CHANGELOG.md on GitHub. Both were 404s.Tested
mkdocs buildon 243b562docsjobmove_images_to_batch, andcore/datasetrenders (the live site, then the local build)publish.ymlrun. GitHub allows one only once the trigger is onmain.Evidence
Red, base
243b562(=v1.7.4), Python 3.10.16, fresh venv, the job's commands:The installed set matches the v1.7.4 run. The last green deploy (v1.7.1, run 37946668852) had pymdown-extensions 12.1 and the same mkdocstrings 1.0.6.
Isolation, same 3.10 env:
pip install "pymdown-extensions==12.1" && mkdocs buildgivesexit=0.PyPI: pymdown-extensions 12.2 was published 2026-10-10 13:01 UTC. mkdocstrings 1.0.7 followed at 13:50 with
requires_python >=3.11, as did mkdocstrings-python 2.0.10+ and mkdocs-material 9.8+. mkdocs-material requiresmkdocs<2.Green, branch
531617e, Python 3.12.9, fresh venv, same commands:I built with
-d <scratch dir>, and the output directory line is cut. 56 docstring warnings remain (51 griffe, 5 autorefs), so--strictwould fail. The CIdocsjob got the same versions on CPython 3.12.16.The live site is missing the method:
curl -fsS https://roboflow.github.io/roboflow-python/core/project/ | grep -c move_images_to_batchprints0. Screenshots are 1280×800. "Before" is the live site, since the base build has no page to show. The live header badge reads v1.7.4 because Material reads the latest release from GitHub in the browser, but the content is 1.7.1.Deploy
After merge, and before anything else merges, Tony runs
gh workflow run publish.yml -R roboflow/roboflow-python --ref main. Onlydeploy-docsruns, and it publishesmain, which is v1.7.4 plus this PR. A run from another branch skips every job. Releases deploy after PyPI as before. No CHANGELOG entry, since the package doesn't change.Reviewer guide
None: small fix
🤖 Generated with Claude Code