Skip to content

Commit ba8179f

Browse files
authored
Fix sitemap by moving comment. (#12216)
Try to fix #12215
1 parent 6b572a4 commit ba8179f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

readthedocs/proxito/views/serve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ def priorities_generator():
817817
It generates values from 1 to 0.1 by decreasing in 0.1 on each
818818
iteration. After 0.1 is reached, it will keep returning 0.1.
819819
"""
820-
priorities = [1, 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2]
820+
priorities = [1.0, 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2]
821821
yield from itertools.chain(priorities, itertools.repeat(0.1))
822822

823823
def hreflang_formatter(lang):

readthedocs/templates/sitemap.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
3+
xmlns:xhtml="http://www.w3.org/1999/xhtml">
14
<!--
25
This sitemap is autogenerated by Read the Docs.
36
It contains all public versions,
@@ -8,9 +11,6 @@ You can learn more about sitemaps, including how to customize them, in our docum
811
* Our documentation on Sitemaps: https://docs.readthedocs.com/platform/stable/reference/sitemaps.html
912
* Our guide about SEO techniques: https://docs.readthedocs.com/platform/stable/guides/technical-docs-seo-guide.html
1013
-->
11-
<?xml version="1.0" encoding="UTF-8"?>
12-
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
13-
xmlns:xhtml="http://www.w3.org/1999/xhtml">
1414
{% for version in versions %}
1515
<url>
1616
<loc>{{ version.loc }}</loc>

0 commit comments

Comments
 (0)