Repository navigation
Remove stale link aliases - #96
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Redo of #63 on current main.
The link shortener only ever adds aliases, so
book/link2alias.jsonandsite/_redirectshad accumulated 27 entries for links the book no longer contains:c-to-rust-migration-book)LukeMathWalker/cheadergenrepo links replaced in List cheadergen and libclang in the course requirements #82The 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/_redirectsregenerated withhelpers/json2redirects.sh.