summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorErik Faye-Lund <erik.faye-lund@collabora.com>2023-04-25 08:46:07 +0200
committerMarge Bot <emma+marge@anholt.net>2023-04-26 22:45:41 +0000
commit3b6f549e961fc790e5e7db8ec8c0709b63d6eee9 (patch)
treeb77b8c60c1d9192f6768fe79fa28a6ddafde828b /docs
parente64dae9441c8fbf99c55fccc78e852f954fd432e (diff)
downloadmesa-3b6f549e961fc790e5e7db8ec8c0709b63d6eee9.tar.gz
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>
Diffstat (limited to 'docs')
-rw-r--r--docs/_exts/bootstrap.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/docs/_exts/bootstrap.py b/docs/_exts/bootstrap.py
index 9050d54adb8..e7239a6a45a 100644
--- a/docs/_exts/bootstrap.py
+++ b/docs/_exts/bootstrap.py
@@ -30,8 +30,6 @@
# Based on https://github.com/pydata/pydata-sphinx-theme
-from packaging.version import Version
-
from docutils import nodes
import sphinx
@@ -77,10 +75,7 @@ class BootstrapHTML5TranslatorMixin:
# init the attributes
atts = {}
- if Version(sphinx.__version__) < Version("4.3"):
- self._table_row_index = 0
- else:
- self._table_row_indices.append(0)
+ self._table_row_indices.append(0)
# get the classes
classes = [cls.strip(" \t\n") for cls in self.settings.table_style.split(",")]