pradyunsg / furo

A clean customizable documentation theme for Sphinx
https://pradyunsg.me/furo/quickstart
MIT License
2.65k stars 304 forks source link

Fixes canonical URLs #733

Closed skrawcz closed 9 months ago

skrawcz commented 9 months ago

~The fix (#727) was missing language and version in the URL.~

[edit] In case anyone else comes across this. If the URL is missing en/latest for example, then you need to adjust your html_baseurl value. e.g. f"https://YOUR.DOMAIN/{language}/{version}" [/edit]

pradyunsg commented 9 months ago

This can be done on the conf.py directly: html_baseurl = f".../{language}/{version}/". This is highly coupled with how the documentation is served by RTD, and varies based on what the RTD configuration is; so I don't think we should be doing this.

skrawcz commented 9 months ago

Yep -- I thought what I was doing wasn't correct. Thanks for pointing that out.