Closed astromatt closed 1 year ago
What are the steps for building the documentation locally?
To build it locally I use:
sphinx-build -a -E -j auto --color -b html {src} {dst}
However I haven't done it for a long time. I use CICD exclusively for last couple of years.
On readthedocs they use:
python -m sphinx -T -E -b html -d _build/doctrees -D language=en . $READTHEDOCS_OUTPUT/html
I was frustrated why this is not working, so I wrote my own extension: https://github.com/astromatt/book-python/blob/main/_extensions/sitemap.py
And it was also not working... As it appears Readthedocs generates sitemap on his own.
In my case something was wrong and it was almost empty file (index page, but no other entries).
So I changed name to sitemap1.xml
and it started to work...
References:
I have an error with generating sitemap for my website. Sphinx 6.1.3 (newest) generates sitemap.xml file but without any entries. Unfortunately there is no log info besides:
In my
conf.py
I have:Generated
sitemap.xml
(yes, that's all file):References: