diff --git a/manual/build.py b/manual/build.py index d9f9c2c71070..3af1aa4cc4ce 100755 --- a/manual/build.py +++ b/manual/build.py @@ -42,7 +42,7 @@ def build_manual(language, base): sb = partial(sphinx_build, language, base) onlinedir = sb(t='online') epubdir = sb('myepub', 'epub') - latexdir = sb('mylatex', 'latex') + latexdir = sb('latex', 'latex') pwd = os.getcwd() os.chdir(latexdir) diff --git a/manual/custom.py b/manual/custom.py index 4c55a8b2b855..3469fa50e41a 100644 --- a/manual/custom.py +++ b/manual/custom.py @@ -11,7 +11,6 @@ from calibre.linux import cli_index_strings, entry_points from epub import EPUBHelpBuilder -from latex import LaTeXHelpBuilder def info(*a): @@ -356,7 +355,6 @@ def setup(app): generate_docs(app.config.language) app.add_css_file('custom.css') app.add_builder(EPUBHelpBuilder) - app.add_builder(LaTeXHelpBuilder) app.connect('source-read', source_read_handler) app.connect('html-page-context', add_html_context) app.connect('build-finished', finished) diff --git a/manual/latex.py b/manual/latex.py deleted file mode 100644 index afd9b30b468c..000000000000 --- a/manual/latex.py +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env python -# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai - - -__license__ = 'GPL v3' -__copyright__ = '2009, Kovid Goyal ' -__docformat__ = 'restructuredtext en' - -from sphinx.builders.latex import LaTeXBuilder -from sphinx.util.logging import getLogger -from sphinx.writers.latex import LaTeXTranslator - - -def info(*a): - getLogger(__name__).info(*a) - - -class FixedLaTeXTranslator(LaTeXTranslator): - # see https://github.com/sphinx-doc/sphinx/issues/8936 - - def visit_substitution_definition(self, node): - pass - - def depart_substitution_definition(self, node): - pass - - -class LaTeXHelpBuilder(LaTeXBuilder): - name = 'mylatex' - default_translator_class = FixedLaTeXTranslator