Closed williamjmorenor closed 1 year ago
I'm not sure how to reproduce this. Can you provide the conf.py file used at the time of the error? Did you forget to add sphinx_immaterial
theme as an extension (required)?
The default value
https://github.com/jbms/sphinx-immaterial/blob/04cf514bb6c1eed333c3ccaec6bd2d2e9c558e6b/sphinx_immaterial/__init__.py#L28
is set when the conf.py file is read:
https://github.com/jbms/sphinx-immaterial/blob/04cf514bb6c1eed333c3ccaec6bd2d2e9c558e6b/sphinx_immaterial/__init__.py#L240-L248
This should be automatically done before the google_fonts
ext handles the builder-inited
event, so I need more info...
This is the conf.py file:
https://github.com/bmosoluciones/now-lms-manual/blob/main/source/conf.py
I get a similar error when trying to use this behind a corporate proxy. My server has no direct connection to fonts.googleapis.com
so the external_resource_cache
is never filled.
Is there an option to exclude external resources?
Is there an option to exclude external resources?
No, but you can keep your own copy of the cache (fetched from machine without the limiting proxy) and specify its location via sphinx_immaterial_external_resource_cache_dir
.
Our CI artifacts also contain a copy of the cache in html/_static/fonts
For the récords i have a error in my conf,py file, the Word extension is in prural there Was a missing "s"
Good to know. I was still rather stumped.
I'm closing this as the original problem is resolved.
@Neojume You can open a new issue if my suggestion doesn't resolve your problem.
I got this error building the docs for the first time, I did install the theme via pypi package.