forked from python/docsbuild-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsitemap.xml
More file actions
22 lines (22 loc) · 974 Bytes
/
sitemap.xml
File metadata and controls
22 lines (22 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
{% for version in versions %}
{%- if version.status != "EOL" %}
<url>
<loc>https://docs.python.org/{{ version.name }}/</loc>
{% for language in languages -%}
<xhtml:link rel="alternate" hreflang="{{ language.iso639_tag.replace('_', '-') }}" href="https://docs.python.org/{% if language.tag != 'en' %}{{ language.tag }}/{% endif %}{{ version.name }}/"/>
{% endfor -%}
<changefreq>{{ version.changefreq }}</changefreq>
</url>
{% endif -%}
{% endfor %}
<url>
<loc>https://docs.python.org/3/</loc>
{% for language in languages -%}
<xhtml:link rel="alternate" hreflang="{{ language.iso639_tag.replace('_', '-') }}" href="https://docs.python.org/{% if language.tag != 'en' %}{{ language.tag }}/{% endif %}3/"/>
{% endfor -%}
<changefreq>daily</changefreq>
</url>
</urlset>