Replace the redirect stubs with Zensical's redirects plugin - #270
Merged
Merged
Conversation
Zensical implements the redirects plugin since 0.0.61, so the 24 hand-written index.html stubs are replaced by redirect_maps in mkdocs.yml. The build now fails on a missing target, and links to a section keep their #fragment instead of landing at the top of the page. - read the redirects from mkdocs.yml in check_zensical_output and verify that each redirect page lands on its target - add unit tests for the redirect check - update the redirect conventions and the README
seebi
approved these changes
Sep 14, 2026
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.
Merge after the Zensical 0.0.62 bump (feature/zensical-0-0-62). GitHub retargets this PR to
mainonce that branch is deleted.Zensical implements the redirects plugin since 0.0.61, so the 24 hand-written
index.htmlstubs are replaced byredirect_mapsinmkdocs.yml.#fragment; the stubs dropped itcheck_zensical_outputreads the redirects frommkdocs.ymland checks that each redirect page lands on its target, which guards against a regression in Zensical's redirect outputThe built site is identical to the stub build apart from the 24 redirect pages (same paths),
redirect.jsonand a config key.task checkpasses, 59 unit tests pass, and a deliberately broken build fails the redirect check.