Skip to content

Remove stale link aliases - #96

Merged
memark merged 1 commit into
mainfrom
prune-link-aliases-v2
Nov 10, 2026
Merged

memark merged 1 commit into
mainfrom
prune-link-aliases-v2

Conversation

@memark

@memark memark commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Redo of #63 on current main.

The link shortener only ever adds aliases, so book/link2alias.json and site/_redirects had accumulated 27 entries for links the book no longer contains:

The PDF that uses these permalinks hasn't been distributed yet, so nothing depends on them.

Compared to #63, this also drops the two cheadergen links, and keeps the clippy lints link: it is a footnote autolink, which the shortener still looks up even though the rendered output shows the original URL.

Verified locally with LINK_SHORTENER_VERIFY=true mdbook build: every link the book emits still has an alias. site/_redirects regenerated with helpers/json2redirects.sh.

The link shortener only ever adds aliases, so link2alias.json and
site/_redirects had accumulated 27 entries for links the book no longer
contains: exercise links from before the renumbering, links under the
repository's old name, the cheadergen repo links replaced in #82, and
links that were edited out of the text. The PDF that uses these
permalinks hasn't been distributed yet, so nothing depends on them.

Verified with LINK_SHORTENER_VERIFY=true: every link the book emits
still has an alias.
@memark
memark merged commit 1f579bc into main Nov 10, 2026
8 checks passed
@memark
memark deleted the prune-link-aliases-v2 branch November 10, 2026 12:13
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