Closed humitos closed 11 months ago
@return42 do you have a minimal reproducible example I can test? At first sight it doesn't seem a problem with the extension itself but on Sphinx or the theme, I'd say.
I reported a similar issue with includehidden=
at https://github.com/sphinx-doc/sphinx/issues/11607 and it seems the regression was introduced in the same commit.
minimal reproducible example I can test?
Sorry, I don't have one at hand / we use the pallets-sphinx-themes
At first sight it doesn't seem a problem with the extension itself but on Sphinx or the theme, I'd say.
AFAIK its a sphinx error .. the default of globaltoc_maxdepth
is an empty string if unset in the theme .. and then Sphinx raises an error:
File "sphinx/environment/adapters/toctree.py", line 86, in global_toctree_for_doc
maxdepth=int(maxdepth),
ValueError: invalid literal for int() with base 10: ''
Thanks for you help debugging this. I'm closing this issue since it's an upstream issue.
@return42 please test with Sphinx 7.2.5; if the issue persists please open a new Sphinx issue.
A
@AA-Turner I can confirm issue does no longer exists in Sphinx 7.2.5 .. thanks a lot for having an eye on :+1:
FWI: in the theme.conf I had to set
globaltoc_maxdepth
to an integer ..it seems the default is an empty string ...
There was a similar issue in the past:
I assume the issue has been back by:
Originally posted by @return42 in https://github.com/readthedocs/sphinx-notfound-page/issues/219#issuecomment-1694691135