Closed rowanG077 closed 3 years ago
If I use html_css_files
to add my own css it works.
@rowanG077 Thanks for reporting!
Should it work with html_context["css_files"]
too? What is the preferred way with the latest Sphinx version?
If this should be supported with the latest version of Sphinx and is preferred over html_css_files
, leave this open and/or feel free to contribute a fix! :stuck_out_tongue_winking_eye:
Using the html_context
like that is undefined behaviour. I didn't know this. See https://github.com/sphinx-doc/sphinx/issues/2442
After a few hours of hair pulling debugging I found that this extension does not work if
html_context["css_files"]
inconf.py
is set at all. The 3d view is not visible and it seems some click event on the page get swallowed.So in
conf.py
the following works:But the following does not work:
For some reason the
<link rel="stylesheet" href="_static/sphinxcadquerystatic/main.css" type="text/css">
is not included in the header in the broken version.