sphinx-sitemap icon indicating copy to clipboard operation
sphinx-sitemap copied to clipboard

Sitemap rules not respected for multilingual documentations

Open Vultik opened this issue 2 years ago • 0 comments

Hi, According to Google documentation, each language variation should be put with <xhtml:link> including the default language.

Current Sitemap:

    <url>
        <loc>https://super_doc.com/fr/index.html</loc>
        <xhtml:link rel="alternate" hreflang="en" href="https://super_doc.com/en/index.html" />
    </url>

Expected Sitemap:

    <url>
        <loc>https://super_doc.com/fr/index.html</loc>
        <xhtml:link rel="alternate" hreflang="en" href="https://super_doc.com/en/index.html" />
        <xhtml:link rel="alternate" hreflang="fr" href="https://super_doc.com/fr/index.html" />
    </url>

https://developers.google.com/search/docs/advanced/crawling/localized-versions#sitemap

Vultik avatar Sep 17 '21 15:09 Vultik