Skip to content

docs: make README links absolute so the PyPI page works - #59

Merged
babaliauskas merged 1 commit into
mainfrom
docs/pypi-absolute-links
Oct 20, 2026
Merged

babaliauskas merged 1 commit into
mainfrom
docs/pypi-absolute-links

Conversation

@babaliauskas

Copy link
Copy Markdown
Collaborator

Why

README.md is the PyPI long description. In the published 1.5.0 description, 35 of 51 links were relative (DOCS.md, docs/configuration.md, examples/agent/, LICENSE, …). On pypi.org they resolve under pypi.org/project/evalshift/…, which 404s. Separately, every project link (Homepage and Documentation included) pointed at GitHub.

What

  • README: all 35 relative links now point at GitHub, blob/main/<path> for files and tree/main/<path> for directories. Anchors such as #config-version-policy are kept. GitHub renders these the same as before.
  • pyproject.toml: Homepage = https://www.evalshift.dev and Documentation = https://www.evalshift.dev/docs/cli. Repository, Issues and Changelog stay on GitHub.
  • tests/unit/test_readme_links.py: fails on any relative link in README.md. It covers markdown inline links, images, reference definitions and HTML href/src, and ignores fenced code. It also checks that readme = "README.md" is still set, since that is the premise of the test.
  • CHANGELOG: entry under Unreleased → Fixed.

PyPI only picks this up on the next CLI release.

Verification

  • make ci: 3292 passed, 95.19% coverage. pre-commit run --all-files is green.
  • The new test failed on main with exactly the 35 relative links, and passes after the rewrite. Every rewritten target exists on main.
  • uv build + twine check pass. The wheel METADATA has the new Project-URLs, and its description has 51 links, 0 relative.

Companion: evalshift/evalshift-sdk (same Homepage/Documentation change).

🤖 Generated with Claude Code

README.md is the PyPI long description, and 35 of its 51 links were
relative, so on pypi.org they resolved under pypi.org/project/evalshift/
and 404ed. Point them at the files on GitHub (blob/main for files,
tree/main for directories) and add a test that keeps them absolute.

Homepage and Documentation now go to evalshift.dev and
evalshift.dev/docs/cli instead of the GitHub repo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@babaliauskas
babaliauskas merged commit 1896523 into main Oct 20, 2026
4 checks passed
@babaliauskas
babaliauskas deleted the docs/pypi-absolute-links branch October 20, 2026 21:51
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