Skip to content

Align versioned docs with PyPI releases (#47)#48

Draft
ilouzl wants to merge 1 commit into
masterfrom
cursor/docs-pypi-version-alignment-e700
Draft

Align versioned docs with PyPI releases (#47)#48
ilouzl wants to merge 1 commit into
masterfrom
cursor/docs-pypi-version-alignment-e700

Conversation

@ilouzl

@ilouzl ilouzl commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #47: published docs were tracking master and could document APIs ahead of the PyPI package.

Changes

  • mike versioning: Material version picker; docs deploy to the gh-pages branch via mike
  • Deploy only after successful PyPI publish: Deploy docs uses workflow_run on Publish to PyPI success (plus workflow_dispatch). Docs failure cannot fail the PyPI job
  • No more master docs auto-deploy: PR docs changes still get mkdocs build --strict
  • History.mddocs/release-notes.md: single changelog for MkDocs + PyPI long description; releasing steps live in publish.yml header comments
  • Auto-fill release notes: scripts/update_release_notes_from_prs.py inserts a missing version section from PRs merged since the previous v* tag (does not overwrite existing sections)

Maintainer follow-up (one-time)

After merge, set GitHub Pages source to Deploy from a branchgh-pages / (root). The first versioned docs site appears on the next successful v* PyPI publish (or via Actions → Deploy docs → Run workflow).

Test plan

  • mkdocs build --strict locally
  • Release-notes script dry-run for existing 0.7.0 (no-op) and missing 0.8.0 (generates from PRs)
  • After merge: confirm Pages branch setting; optional manual workflow_dispatch deploy for a version
Open in Web Open in Cursor 

Deploy MkDocs with mike only after a successful PyPI publish (separate
workflow), migrate History.md into docs/release-notes.md, and auto-fill
missing release-note sections from merged PRs on tag publish.

Co-authored-by: Liron Ilouz <ilouzl@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

Docs check

  • Status: OK
  • Affected quadrants: none
  • Gaps: none
  • Suggested edits: none

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.

Docs and published version mismatch

2 participants