Skip to content

docs(readme): use absolute repo URLs so PyPI links resolve - #75

Merged
barottomartin merged 1 commit into
devfrom
DOC-2206/absolute-readme-links-for-pypi
Sep 10, 2026
Merged

barottomartin merged 1 commit into
devfrom
DOC-2206/absolute-readme-links-for-pypi

Conversation

@barottomartin

Copy link
Copy Markdown
Contributor

What

The README is the PyPI project description (readme = "README.md" in pyproject.toml). PyPI renders it in isolation with no repository context, and its renderer (readme_renderer) emits relative Markdown links verbatim — it does not rewrite them to the repo. So relative links resolve against the project page URL (e.g. https://pypi.org/project/hdxcli/1.0.84/LICENSE) and 404 for anyone landing from pip.

This rewrites the three relative links to absolute URLs, pinned to the v1.0.84 tag:

Link Before After
"original README" README-general.md https://github.com/hydrolix/hdxcli/blob/v1.0.84/README-general.md
License badge target LICENSE https://github.com/hydrolix/hdxcli/blob/v1.0.84/LICENSE
Prose LICENSE link LICENSE https://github.com/hydrolix/hdxcli/blob/v1.0.84/LICENSE

The README-general.md link matters most here: for this deprecation release it's the only place the usage docs live, and it's a plain text link with no badge image masking the break.

Why pin to the tag, not a branch

blob/v1.0.84/... keeps the links valid if files move or the branch is later renamed. These URLs 404 until the v1.0.84 tag is created and pushed — expected; create the tag at release time.

Scope / non-changes

  • Prose, headings, and the deprecation warning wording are unchanged — link targets only.
  • The > [!WARNING] / > [!NOTE] GitHub alert syntax is intact (degrades to blockquotes on PyPI, which is fine).
  • Already-absolute links left alone: the docs.hydrolix.io release-notes link, the support@hydrolix.io mailto, and the shields.io badge image (it renders fine — only its link target was broken).
  • README-general.md not touched (it isn't packaged as the PyPI description).

Validation

  • poetry build + twine check dist/* → both PASS (twine doesn't resolve link targets, so it passes regardless of the tag existing).
  • No link-checking hook/CI in the repo (pre-commit is black + isort only; sole workflow is run_tests.yml), so nothing fetches these URLs to block on the expected 404s.
  • Confirmed the break with PyPI's own renderer: readme_renderer outputs href="LICENSE" verbatim → resolves to a 404 on the PyPI page.

🤖 Generated with Claude Code

The README is the PyPI project description (readme = "README.md"), which
PyPI renders in isolation with no repository context. Relative Markdown
links are emitted verbatim by PyPI's renderer, so they resolve against
the project page URL and 404 for anyone landing from pip:

- the "original README" link (README-general.md) — now the only place the
  usage docs live for this deprecation release
- the license badge's link target and the prose LICENSE link

Rewrite all three as absolute URLs pinned to the v1.0.84 tag
(blob/v1.0.84/...) rather than a branch, so they stay valid if files move
or the branch is renamed. Prose, headings, the deprecation warning, and
the already-absolute links (docs.hydrolix.io, mailto) are unchanged.

Note: these URLs 404 until the v1.0.84 tag is created and pushed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@barottomartin
barottomartin requested review from a team and mabrown-hydrolix September 10, 2026 12:01
@barottomartin
barottomartin merged commit df69b4f into dev Sep 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants