diff --git a/CHANGES.rst b/CHANGES.rst index d6b2a0a..ab8604d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,15 @@ Enthought Sphinx Theme changelog ================================ +Release 0.7.4 +------------- + +Release date: 2026-02-16 + +Changes + +* Fix Sphinx 9 compatibility for CSS and JS asset rendering. (#25) + Release 0.7.3 ------------- diff --git a/enthought_sphinx_theme/enthought/layout.html b/enthought_sphinx_theme/enthought/layout.html index c013792..5dc7ddc 100644 --- a/enthought_sphinx_theme/enthought/layout.html +++ b/enthought_sphinx_theme/enthought/layout.html @@ -102,8 +102,12 @@ HAS_SOURCE: {{ has_source|lower }} }; - {%- for scriptfile in script_files %} - + {%- for js in script_files %} + {%- if js|attr("filename") %} + {{ js_tag(js) }} + {%- else %} + + {%- endif %} {%- endfor %} @@ -114,8 +118,12 @@ - {%- for cssfile in css_files %} - + {%- for css in css_files %} + {%- if css|attr("filename") %} + {{ css_tag(css) }} + {%- else %} + + {%- endif %} {%- endfor %} {%- endmacro %} diff --git a/setup.py b/setup.py index cc1da22..6368a7d 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name='enthought_sphinx_theme', - version='0.7.3', + version='0.7.4', author='Enthought, Inc.', author_email='info@enthought.com', description='Sphinx theme for Enthought products',