Skip to content

Build a sitemap #56

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

Closed
JulienPalard opened this issue Jul 25, 2018 · 5 comments
Closed

Build a sitemap #56

JulienPalard opened this issue Jul 25, 2018 · 5 comments
Assignees

Comments

@JulienPalard
Copy link
Member

It would probably be nice if we can generate a sitemap of our documentations.

@JulienPalard JulienPalard self-assigned this Jul 25, 2018
@devarshigoswami
Copy link

@JulienPalard has this issue been resolved? if not, can I work on it?

@JulienPalard
Copy link
Member Author

This has not been resolved, you're welcome working on it :) Please check first if it already exist as a part of sphinx, let's not reinvent the wheel (haven't checked myself).

@devarshigoswami
Copy link

@JulienPalard I checked .. couldn't find anything referencing docsbuild-scripts in the sphinx documentation. Also, I'm a tad new to this hence a little more information would be really appreciated... Do you want me to build an XML sitemap for docs.python.org or am I completely understanding the task wrongly?

@JulienPalard
Copy link
Member Author

docsbuild-scripts uses Sphinx, but Sphinx don't know docsbuild-scripts.

Sphinx is a tool to build documentation from rst files.

docsbuild-scripts is a tool to call Sphinx multiple times: Once per Python version and per supported language, with specific parameters (though "config-variables" at the top of the script).

The output of docsbuild-script is hosted at https://docs.python.org, it's started daily: https://github.com/python/psf-salt/blob/master/salt/docs/init.sls#L83-L91

So https://docs.python.org/fr/3.8/ is one sphinx build. https://docs.python.org/fr/3.7/ is another one, https://docs.python.org/ja/3.8/ is another one, and so on, and so on.

Beware, running a full docsbuild-scripts takes some time, and some disk space, as it'll build n languages times m versions.

The idea behind this issue is to provide a sitemap to all generated content across all builds.

The strategy I have in mind is: have a "sitemap index" listing sitemaps of individual builds, and a sitemap per build.

@JulienPalard
Copy link
Member Author

We now have a very minimal sitemap: https://docs.python.org/sitemap.xml :)

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