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

Sitemap customization for locale paths

Open miketheman opened this issue 4 years ago • 1 comments

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"?

miketheman avatar Jun 20 '20 21:06 miketheman

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?

jdillard avatar Jun 23 '20 01:06 jdillard