-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inject canonical tag on mkdocs as we do with Sphinx #4820
Comments
@stsewd I would like to take this issue up. |
That comes from the project model, but this issue has the |
Just adding that looks like the |
|
As mentioned by @astrojuanlu, we can use environment variables in However, then this needs to be fixed: #8529 |
In Sphinx if a user has a custom domain we setup the canonical tag for the user (we also have some docs for that feature https://docs.readthedocs.io/en/latest/canonical.html)
In Sphinx we do that here https://github.com/rtfd/readthedocs.org/blob/9b2b17c0fc603267b4b20f5923862c2db82602da/readthedocs/doc_builder/templates/doc_builder/conf.py.tmpl#L95-L95
On mkdocs we don't do that, but it's possible using the
site_url
setting https://www.mkdocs.org/user-guide/configuration/#site_urlWe can do that here
https://github.com/rtfd/readthedocs.org/blob/9b2b17c0fc603267b4b20f5923862c2db82602da/readthedocs/doc_builder/backends/mkdocs.py#L107-L107
Ref #3137
The text was updated successfully, but these errors were encountered: