BioSTEAMDevelopmentGroup / thermosteam

BioSTEAM's Premier Thermodynamic Engine
Other
58 stars 12 forks source link

Redirect previous thermosteam docs domain to biosteam docs domain #75

Closed yalinli2 closed 2 years ago

yalinli2 commented 2 years ago

Since thermosteam's docs is now migrated to biosteam, now going to the previous thermosteam docs domain will lead to the 404 error.

I'm wondering if we can redirect it to biosteam's docs using the redirect function (probably Exact Redirect) of readthedocs? Thanks!

yoelcortes commented 2 years ago

Thanks for looking into this. I tried this before and couldn't get it to work. I just tried it again and run into different issues, including:

  1. When redirecting to another readthedocs, an additional "en/latest" is tagged along (so thermosteam.readthedocs.io/ becomes https://biosteam.readthedocs.io/en/latest/en/latest").
  2. If I add a redirect in biosteam for https://biosteam.readthedocs.io/en/latest/en/latest to https://biosteam.readthedocs.io/en/latest/, then when redirecting from thermosteam we get https://biosteam.readthedocs.io/en/latest/$rest. But the redirect from biosteam works, which is quite odd :/

But I got it to work with sphinx-reredirects (Hooray!). I'm pretty happy with that sphinx extension (https://documatt.gitlab.io/sphinx-reredirects/usage.html).

Thanks!

yalinli2 commented 2 years ago

👍🎉

On Sun, Aug 21, 2022 at 11:34 AM Yoel @.***> wrote:

Thanks for looking into this. I tried this before and couldn't get it to work. I just tried it again and run into different issues, including:

  1. When redirecting to another readthedocs, an additional "en/latest" is tagged along (so thermosteam.readthedocs.io/ becomes https://biosteam.readthedocs.io/en/latest/en/latest").
  2. If I add a redirect in biosteam for https://biosteam.readthedocs.io/en/latest/en/latest to https://biosteam.readthedocs.io/en/latest/, then when redirecting from thermosteam we get https://biosteam.readthedocs.io/en/latest/$rest. But the redirect from biosteam works, which is quite odd :/

But I got it to work with sphinx-reredirects (Hooray!). I'm pretty happy with that sphinx extension ( https://documatt.gitlab.io/sphinx-reredirects/usage.html).

Thanks!

— Reply to this email directly, view it on GitHub https://github.com/BioSTEAMDevelopmentGroup/thermosteam/issues/75#issuecomment-1221579270, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALV5VLKYJLX62KSX2XNFUIDV2JLBPANCNFSM57FCCI4A . You are receiving this because you authored the thread.Message ID: @.***>