Use app.set_html_assets_policy as 'always'#136
Conversation
b525eb5 to
7c46550
Compare
Tell Sphinx to always include assets in all HTML pages Closes #119
|
I'm not sure of a clean way to convey to users that Sphinx 3.5->4.0.2 is broken? Can we throw an info statement? |
It's not completely broken. There is only one case that doesn't work: embedding math formulas from pages that don't include math formulas. So, I don't think we should add code to communicate this particular case.
I've added a warning note in https://sphinx-hoverxref.readthedocs.io/en/latest/usage.html#tooltip-with-content-that-needs-extra-rendering-steps that we need to update to mention that this is fixed in Sphinx 4.1.0 BTW, why you are mentioning 4.0.2 as the version that fixes this? I saw that my PR was tagged as 4.1.0: sphinx-doc/sphinx#9174 |
Tell Sphinx to always include assets in all HTML pages
Closes #119