diff --git a/conf.py b/conf.py index 42b6f061b..7b2060ec3 100644 --- a/conf.py +++ b/conf.py @@ -201,8 +201,8 @@ html_favicon = os.path.join(html_theme_path[0], html_theme, 'static', 'img', 'fa # They are copied after the builtin static files, so a file named "default.css" will overwrite the # builtin "default.css". html_static_path = ['static'] -html_add_permalinks = 'ΒΆ' # Sphinx < 3.5 -html_permalinks = True # Sphinx >= 3.5 +html_permalinks = True + # Additional JS & CSS files that can be imported with the 'custom-js' and 'custom-css' metadata. # Lists are empty because the files are specified in extensions/themes. html_js_files = [] diff --git a/extensions/odoo_theme/translator.py b/extensions/odoo_theme/translator.py index a62ac8924..efff2c821 100644 --- a/extensions/odoo_theme/translator.py +++ b/extensions/odoo_theme/translator.py @@ -1,13 +1,9 @@ # -*- coding: utf-8 -*- -import os.path -import posixpath -import re from docutils import nodes -from sphinx import addnodes, util, builders from sphinx.locale import admonitionlabels from sphinx.writers.html5 import HTML5Translator -#from urllib.request import url2pathname + # Translators inheritance chain: # Docutils Base HTML translator: https://sourceforge.net/p/docutils/code/HEAD/tree/trunk/docutils/docutils/writers/_html_base.py @@ -56,7 +52,6 @@ class BootstrapTranslator(HTML5Translator): html_title = 'html_title' html_subtitle = 'html_subtitle' - def __init__(self, builder, *args, **kwds): super().__init__(builder, *args, **kwds) @@ -150,7 +145,8 @@ class BootstrapTranslator(HTML5Translator): # type: (nodes.Node) -> None self.generate_targets_for_table(node) - self._table_row_index = 0 + # c/p of https://github.com/pydata/pydata-sphinx-theme/pull/509/files + self._table_row_indices.append(0) classes = [cls.strip(u' \t\n') for cls in self.settings.table_style.split(',')] diff --git a/requirements.txt b/requirements.txt index 4d7767a79..aa1d94335 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,6 @@ docutils==0.16.0 # Compatibility with sphinx-tabs 3.2.0. -jinja2<3.1 # Compatibility with Sphinx 3.5.4. pygments~=2.6.1 pygments-csv-lexer~=0.1 pysass~=0.1.0 -sphinx~=3.0 +sphinx==4.3.2 sphinx-tabs==3.2.0 -werkzeug==0.14.1