sphinx-sitemap
sphinx-sitemap copied to clipboard
Sitemap customization for locale paths
Hello!
Looking at the sitemap_url_scheme
customization for multi-language sites, and I'm trying to figure out how to pass a specific configuration to enable the following behavior:
in conf.py
;
language = 'en'
locale_dirs = ['locale/']
and then in locale/
:
-> de
-> fr
-> es
and their associated files.
With a configuration of sitemap_url_scheme = "{lang}{link}"
I get correct URLs to the locales for anything except for en
which for my site is "unnamed" in the URL path.
Am I doing it wrong? How might I pass "use the locale subpath for anything other than en
"?
Hrm, that config looks right to me. What are parameters are you using with sphinx-build
? Are you having an issue with just the en
version of the sitemap, or are the alternatives in all the other locales having issues as well?