Closed ruksi closed 4 years ago
Let's imagine a project with the following documentation structure:
index.rst faq.rst downloads/index.rst downloads/linux.rst
sphinx-sitemap would generate a sitemap with:
sphinx-sitemap
https://example.com/index.html https://example.com/faq.html https://example.com/downloads/index.html https://example.com/downloads/linux.html
But as we are using DirectoryHTMLBuilder, Sphinx will actually build:
DirectoryHTMLBuilder
https://example.com/index.html https://example.com/faq/index.html <- wrong in sitemap https://example.com/downloads/index.html https://example.com/downloads/linux/index.html <- wrong in sitemap
And thus, as we want to use "directory" style URLs:
https://example.com/ https://example.com/faq/ https://example.com/downloads/ https://example.com/downloads/linux/
Which the main beef of this pull request.
Additionally:
pep8
pycodestyle
Cheers!
Thank you! Your changes are now in the latest version on PyPI.
Let's imagine a project with the following documentation structure:
sphinx-sitemap
would generate a sitemap with:But as we are using
DirectoryHTMLBuilder
, Sphinx will actually build:And thus, as we want to use "directory" style URLs:
Which the main beef of this pull request.
Additionally:
pep8
topycodestyle
Cheers!