executablebooks / sphinx-book-theme

A clean book theme for scientific explanations and documentation with Sphinx
https://sphinx-book-theme.readthedocs.io
BSD 3-Clause "New" or "Revised" License
433 stars 197 forks source link

FIX: properly handle CSS objects in css_files #791

Closed agoose77 closed 9 months ago

agoose77 commented 9 months ago

Sphinx 7.26 (approximately) deprecates implicit string operations on the contents of context['css_files']. This, in turn, raises warnings for users that enable strict warning checks. This was observed in jupyter-book's test-suite.

This PR updates our handling to first assume objects within this list are _CascadingStyleSheet objects, and replaces the object back on the path.