Closed EnriqueL8 closed 3 months ago
Sorry, but that's not supported. While it's theoretically possible to determine the correct place to redirect, the static nature of the pages makes it painful to actually implement, at least in a way where I could feel confident it wouldn't increase the support burden of this project. Here are the ways I can think of to solve this:
index.html
and the version aliases). Then you could deploy the contents of the gh-pages
branch to that server and it should all just work.versions.json
). Maybe you could use mkocs-redirects
for this, though I'm not sure there's much point; it's not like you'll have to change the redirects after you've set them up (except maybe to delete them a few years down the line).Closing. If this becomes supported in mike at some point, it would be via #72.
Hi all!
Thanks for building a great tool 😃
We have recently moved our project Hyperledger FireFly to mkdocs and use mike to manage versions, you can see the docs here https://hyperledger.github.io/firefly/latest/.
We are using all the
mike deploy
command to handle versions and it all works well but unfortunately there is a lot of content online that references our old URLs for example https://hyperledger.github.io/firefly/reference/namespaces/ which does not contain thelatest
path parameter. For this URL, a404
page is rendered so I would like to be able to redirect to https://hyperledger.github.io/firefly/latest/reference/namespaces/.A few things I've looked at:
index.html
generate by mike redirects to/latest
already~404
pagemkdocs-redirects
and wonder if something like https://github.com/mkdocs/mkdocs-redirects/issues/59 is what I need but how do I make it work with mike?Thanks in advance @jimporter !