pydata-sphinx-theme
pydata-sphinx-theme copied to clipboard
Cannot be built with JSON builder
Hi,
How to repeat. 1/ Create a new sphinx project with: sphinx-quickstart -p test -a test -q 2/ Use pydata_sphinx_theme: sed -i 's/alabaster/pydata_sphinx_theme/' conf.py 3/ Build sphinx with json builder: make json
Result: Exception occurred: File "/usr/lib/python3.10/json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.class.name} ' TypeError: Object of type _lru_cache_wrapper is not JSON serializable
4/ Quick fix: lru_cache from toctree.py ( sed -i '/lru_cache/d' toctree.py )