Skip to content

Release 5.0.1: show README diagrams on PyPI - #40

Merged
un33k merged 1 commit into
mainfrom
fix/pypi-readme
Nov 29, 2026
Merged

un33k merged 1 commit into
mainfrom
fix/pypi-readme

Conversation

@un33k

@un33k un33k commented Nov 29, 2026

Copy link
Copy Markdown
Owner

Patch release: docs and packaging only, no code changes.

PyPI does not render Mermaid, so the README diagrams showed as raw code there. Now:

  • Each README diagram has an invisible <!-- pypi-diagram: NAME --> marker; GitHub still renders the live Mermaid.
  • docs/diagrams/NAME.png holds each diagram pre-rendered (mermaid-cli, white background, 2x).
  • The PyPI long description (hatch-fancy-pypi-readme) swaps each marked block for its PNG, pinned to this release's tag so old PyPI pages never change.
  • A packaging test checks every diagram is marked, uniquely named, rendered, and that the image links pin the current version.

🚀 Generated with Dojo ⛩️

@un33k
un33k merged commit 584603b into main Nov 29, 2026
15 checks passed
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage is 98.954% — fix/pypi-readme into main. No base build found for main.

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.

2 participants