Skip to content

Commit

Permalink
Workaround for bug in newer versions of sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Feb 28, 2021
1 parent 195f61d commit 0be5604
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion manual/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
from latex import LaTeXHelpBuilder


class FixedLaTeXHelpBuilder(LaTeXHelpBuilder):
# see https://github.com/sphinx-doc/sphinx/issues/8936

def visit_substitution_definition(self, node):
pass

def depart_substitution_definition(self, node):
pass


def substitute(app, doctree):
pass

Expand Down Expand Up @@ -375,7 +385,7 @@ def setup(app):
setup_man_pages(app)
app.add_css_file('custom.css')
app.add_builder(EPUBHelpBuilder)
app.add_builder(LaTeXHelpBuilder)
app.add_builder(FixedLaTeXHelpBuilder)
app.connect('source-read', source_read_handler)
app.connect('doctree-read', substitute)
app.connect('builder-inited', generate_docs)
Expand Down

0 comments on commit 0be5604

Please sign in to comment.