docs: remove support for old sphinx-versions
We're not using them, so no point in keeping support around. Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8399>
This commit is contained in:
parent
e64dae9441
commit
3b6f549e96
1 changed files with 1 additions and 6 deletions
|
|
@ -30,8 +30,6 @@
|
||||||
|
|
||||||
# Based on https://github.com/pydata/pydata-sphinx-theme
|
# Based on https://github.com/pydata/pydata-sphinx-theme
|
||||||
|
|
||||||
from packaging.version import Version
|
|
||||||
|
|
||||||
from docutils import nodes
|
from docutils import nodes
|
||||||
|
|
||||||
import sphinx
|
import sphinx
|
||||||
|
|
@ -77,10 +75,7 @@ class BootstrapHTML5TranslatorMixin:
|
||||||
# init the attributes
|
# init the attributes
|
||||||
atts = {}
|
atts = {}
|
||||||
|
|
||||||
if Version(sphinx.__version__) < Version("4.3"):
|
self._table_row_indices.append(0)
|
||||||
self._table_row_index = 0
|
|
||||||
else:
|
|
||||||
self._table_row_indices.append(0)
|
|
||||||
|
|
||||||
# get the classes
|
# get the classes
|
||||||
classes = [cls.strip(" \t\n") for cls in self.settings.table_style.split(",")]
|
classes = [cls.strip(" \t\n") for cls in self.settings.table_style.split(",")]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue