Closed iSOLveIT closed 2 years ago
Did you also add sphinx_immaterial
to the extensions
list in conf.py?
Just realised I didn't add sphinx_immaterial
to the extensions
list in conf.py.
It is building now. Thanks for the help.
I wonder if there is a way we can detect this problem and show a useful error message.
Maybe we can try to catch an exception and augment the error message. Maybe create some kind of assertion from Jinja context processing.
I am actually a bit confused how this code is even running if sphinx_immaterial
is not added as an extension.
@iSOLveIT What was your theme / extension config when the problem occurred?
In my conf.py file, I set the html_theme
variable using this: os.getenv('THEME', 'ala baster')
.
The THEME environment variable was set to sphinx-immaterial
in my .envrc file.
As a result, although sphinx-immaterial wasn't included in the extensions
list, it was used by Sphinx.
@jbms I was able to reproduce this with our own docs.
Sphinx documentation doesn't build and it produces this error message if I use Sphinx-Immaterial as the html_theme: