Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sitemap customization for locale paths #24

Open
miketheman opened this issue Jun 20, 2020 · 1 comment
Open

Sitemap customization for locale paths #24

miketheman opened this issue Jun 20, 2020 · 1 comment

Comments

@miketheman
Copy link

miketheman commented Jun 20, 2020

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

@jdillard
Copy link
Owner

jdillard commented Jun 23, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants