From 25691fc18929710490b181e7cadba4b9a3b6977c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 17 Oct 2014 09:31:03 +0530 Subject: [PATCH] Proper exclusion of the unused index document --- manual/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manual/conf.py b/manual/conf.py index 0d047a95e4..0b7763f358 100644 --- a/manual/conf.py +++ b/manual/conf.py @@ -38,7 +38,7 @@ source_suffix = '.rst' # The master toctree document. master_doc = 'index' if tags.has('online') else 'simple_index' # noqa # kill the warning about index/simple_index not being in a toctree -exclude_patterns = ['simple_index.rst'] if master_doc == 'index' else ['index'] +exclude_patterns = ['simple_index.rst'] if master_doc == 'index' else ['index.rst'] # The language language = os.environ.get('CALIBRE_OVERRIDE_LANG', 'en') @@ -158,7 +158,7 @@ latex_font_size = '10pt' # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, document class [howto/manual]). -latex_documents = [('index', 'calibre.tex', 'calibre User Manual', +latex_documents = [(master_doc, 'calibre.tex', 'calibre User Manual', 'Kovid Goyal', 'manual', False)] # Additional stuff for the LaTeX preamble.