Do not use conf-man.py for non-manpage doc builds
authorTeemu Murtola <teemu.murtola@gmail.com>
Tue, 23 May 2017 18:06:45 +0000 (21:06 +0300)
committerMark Abraham <mark.j.abraham@gmail.com>
Tue, 27 Jun 2017 23:13:07 +0000 (01:13 +0200)
Avoid importing conf-man.py for Sphinx invocations that do not build man
pages.  Since it only specifies man page build rules, it is not
necessary, and some of the targets do not have dependencies that would
ensure that it is present.

Fixes #2184.

Change-Id: I3fe9cb03667c9a4e1d4bb9e02b65544e8250be31

docs/conf.py

index 58a676adf47f3c9c18cd9246ea6f806306276d19..6b1cbe048ba11d50fd85cd34397c29a18a36914f 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2015,2016, by the GROMACS development team, led by
+# Copyright (c) 2015,2016,2017, by the GROMACS development team, led by
 # Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
 # and including many others, as listed in the AUTHORS file in the
 # top-level source directory and at http://www.gromacs.org.
@@ -309,7 +309,8 @@ latex_documents = [
 
 # One entry per manual page. List of tuples
 # (source start file, name, description, authors, manual section).
-execfile('conf-man.py')
+if tags.has('do_man'):
+    execfile('conf-man.py')
 
 # If true, show URL addresses after external links.
 #man_show_urls = False