You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
In my doc site, I have several versions hosted on different URLs. Each version has a mkdocs.yaml. The site_url of all if used in the context of canonical url, needs to point to the latest version. But, in this case the generation of the sitemap.xml file is the same for all versions. I want the sitemap.xml to be generated for the specific version and the canonical_url to point to the latest version. How can I achieve this? Can i introduce a new config and use it as one of the two?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
In my doc site, I have several versions hosted on different URLs. Each version has a mkdocs.yaml. The site_url of all if used in the context of canonical url, needs to point to the latest version. But, in this case the generation of the sitemap.xml file is the same for all versions. I want the sitemap.xml to be generated for the specific version and the canonical_url to point to the latest version. How can I achieve this? Can i introduce a new config and use it as one of the two?
Beta Was this translation helpful? Give feedback.
All reactions