Automatic redirects using hooks and the Git history #5130
kamilkrzyskow
started this conversation in
Show and tell
Replies: 1 comment
-
Very cool. I'm glad you cross-posted this here because I hadn't yet thought to look for mkdocs github project. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Context
The mkdocs-redirects plugin allows to create dynamic* redirections for older links.
However, they're not fully dynamic, because the user has to maintain the
redirect_maps
manually after each location change.The user might forget to update them, or even make a mistake and write the old name with a typo or fat-finger and write a completely wrong destination.
Why not write the redirections automatically then to save time and headaches?
Solution
Since version [1.4.0](https://github.com... to read more subscribe to my newsl... no no no, it's nothing of that sort.
To read more go to the main post over at the main MkDocs discussions:
mkdocs/mkdocs#3134
I just don't want to maintain 2 separate posts, and ultimately forget to do so.
I hope such cross-post is OK, the hook should work with any theme, therefore I decided to post the main post there.
Beta Was this translation helpful? Give feedback.
All reactions