Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion _unittests/ut_sphinxext/test_latex_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ def test_latex_builder_sphinx_table(self):
raise Exception(html)

t1 = "a&b1"
if t1 not in html.replace("\n", ""):
t1b = "a&\\sphinxAtStartParb1" # sphinx 3.5
if t1 not in html.replace("\n", "") and t1b not in html.replace("\n", ""):
raise Exception(html)

t1 = "\\begin{tabulary}{\\linewidth}[t]{|T|T|}"
Expand Down
13 changes: 11 additions & 2 deletions src/pyquickhelper/helpgen/sphinxm_convert_doc_sphinx_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,18 @@ def depart_only(self, node):
# The program should not necessarily be here.
pass

def visit_viewcode_anchor(self, node):
# Removed in sphinx 3.5
pass

def depart_viewcode_anchor(self, node):
# Removed in sphinx 3.5
pass

def unknown_visit(self, node): # pragma: no cover
raise NotImplementedError("[_AdditionalVisitDepart] Unknown node: '{0}' in '{1}'".format(
node.__class__.__name__, self.__class__.__name__))
raise NotImplementedError(
"[_AdditionalVisitDepart] Unknown node: '{0}' in '{1}'".format(
node.__class__.__name__, self.__class__.__name__))


class HTMLTranslatorWithCustomDirectives(_AdditionalVisitDepart, HTMLTranslator):
Expand Down