Skip to content

docs(pypi): backlink to PyPI from README, docs, CHANGELOG, and future releases#27

Merged
chad-loder merged 1 commit into
mainfrom
docs/pypi-backlinks
May 13, 2026
Merged

docs(pypi): backlink to PyPI from README, docs, CHANGELOG, and future releases#27
chad-loder merged 1 commit into
mainfrom
docs/pypi-backlinks

Conversation

@chad-loder
Copy link
Copy Markdown
Owner

Summary

  • Adds PyPI version badge in README badge row; install sections in README and docs/index.md text-link the package name to https://pypi.org/project/yarlpattern/.
  • CHANGELOG header points at /project/yarlpattern/#history.
  • Custom PSR Jinja template under .semantic-release/templates/ emits a versioned PyPI deep-link on every new release heading:
    ## vX.Y.Z (date) — [Release](…) · [PyPI](…). Only .components/versioned_changes.md.j2 deviates from PSR's bundled conventional/md/ defaults; the rest are vendored verbatim because PSR uses the template directory as a binary switch (no merge with defaults).
  • Update mode preserves existing 0.1.0 / 0.2.0 entries verbatim — only releases cut from now on use the new format. Heading format keeps the # vX.Y.Z substring PSR's update-mode dedup check requires, so CI retries are idempotent (verified against real git history).

Test plan

  • rumdl check README.md docs/index.md CHANGELOG.md — clean
  • Programmatic render against real git history confirms new template path resolves and produces the expected heading
  • Two-pass idempotency check: a synthesized "already added" release entry is detected by PSR's dedup substring search; no double-add on rerender
  • semantic-release --noop changelog confirms the new template_dir = ".semantic-release/templates" is picked up (PSR takes the user-template code path, not the bundled defaults)
  • CI green

… releases

- README badge row gains a PyPI version badge; install section text-links
  the package name to /project/yarlpattern/. Same in docs/index.md (a
  cross-domain backlink: chad-loder.github.io → pypi.org).
- CHANGELOG header points at /project/yarlpattern/#history.
- Custom PSR Jinja template under .semantic-release/templates/ emits a
  versioned PyPI deep-link on every new release heading:
  `## vX.Y.Z (date) — [Release](…) · [PyPI](…)`. Uses PSR's built-in
  `create_release_url` / `create_pypi_url` filters so the same template
  works across HVCS backends.
- Only file deviating from PSR's bundled conventional/md/ templates is
  .components/versioned_changes.md.j2; the other eight are vendored
  verbatim because PSR uses templates/ as a binary switch (no merge with
  defaults). The heading format keeps the `# vX.Y.Z ` substring that
  PSR's update-mode dedup check requires, so CI retries are idempotent
  (verified against real git history).
- Update mode preserves existing 0.1.0/0.2.0 entries verbatim; only
  releases cut from now on use the new format. Old end-of-file PSR
  stamp marker replaced with `<!-- version list -->` near the top,
  matching the v10 default insertion flag.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 13, 2026
@chad-loder chad-loder merged commit 5890790 into main May 13, 2026
13 checks passed
@chad-loder chad-loder deleted the docs/pypi-backlinks branch May 13, 2026 23:19
chad-loder pushed a commit that referenced this pull request May 14, 2026
The rewrite dropped the package-name link to the PyPI project page
that #27 had deliberately added; restore it on the facts line under
the install command.

https://claude.ai/code/session_013t5L37cKtEoFkY3toL2XV1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant