TYPO3-Documentation / sphinx_typo3_theme

Sphinx theme for docs.typo3.org
https://typo3-documentation.github.io/sphinx_typo3_theme
MIT License
28 stars 17 forks source link

Improve handling of style variable in template. #217

Open b-fein opened 5 months ago

b-fein commented 5 months ago

The style variable is missing in Sphinx 7. Instead, it now uses a list of styles [1]. This new list was already added in Sphinx 5.1. It looks like the style was only removed in Sphinx 7, though.

This commit updates the layout.html template to define the styles variable if it is missing. This makes the change compatible with both Sphinx <5.1 and versions later than that.

This change is enough to make our documentation buildable with Sphinx 7 when using this theme.

[1] https://www.sphinx-doc.org/en/master/development/templating.html#styles