docs: fix docs sitemap link generation (#5498)

This commit is contained in:
Praveen Durairaju 2020-07-31 21:56:24 +05:30 committed by GitHub
parent 69b5a831c6
commit b2af143211
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ def on_finish_building(app, exception):
for link in indexObjs:
url = ET.SubElement(root, "url")
ET.SubElement(url, "loc").text = base_domain + str(current_version) + "/" + link["url"]
ET.SubElement(url, "loc").text = "https://" + base_domain + "/" + str(current_version) + "/" + link["url"]
ET.SubElement(url, "changefreq").text = "daily"
ET.SubElement(url, "priority").text = "1" if (current_version == latest_version) else "0.5"