Generate man pages through Sphinx
[alexxy/gromacs.git] / docs / conf.py
index 067ce0d426cf84b0f7073915d4dea001472dc8ea..f501ee71be83e75473a74bea8f5004644bcfe7db 100644 (file)
@@ -106,7 +106,10 @@ release = gmx_version_string_full
 
 # List of patterns, relative to source directory, that match files and
 # directories to ignore when looking for source files.
-# exclude_patterns = []
+if not tags.has('do_man'):
+    exclude_patterns = ['man']
+else:
+    exclude_patterns = ['man/bytopic.rst']
 
 # The reST default role (used for this markup: `text`) to use for all
 # documents.
@@ -317,10 +320,7 @@ latex_documents = [
 
 # One entry per manual page. List of tuples
 # (source start file, name, description, authors, manual section).
-man_pages = [
-    ('index', 'gromacs', u'Gromacs Documentation',
-     [u'Gromacs development team'], 1)
-]
+execfile('conf-man.py')
 
 # If true, show URL addresses after external links.
 #man_show_urls = False