cmdlinerunner.cpp: use ICommandLineOptionsModule
[alexxy/gromacs.git] / docs / conf.py
1 #
2 # This file is part of the GROMACS molecular simulation package.
3 #
4 # Copyright (c) 2015, by the GROMACS development team, led by
5 # Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
6 # and including many others, as listed in the AUTHORS file in the
7 # top-level source directory and at http://www.gromacs.org.
8 #
9 # GROMACS is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU Lesser General Public License
11 # as published by the Free Software Foundation; either version 2.1
12 # of the License, or (at your option) any later version.
13 #
14 # GROMACS is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 # Lesser General Public License for more details.
18 #
19 # You should have received a copy of the GNU Lesser General Public
20 # License along with GROMACS; if not, see
21 # http://www.gnu.org/licenses, or write to the Free Software Foundation,
22 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA.
23 #
24 # If you want to redistribute modifications to GROMACS, please
25 # consider that scientific software is very special. Version
26 # control is crucial - bugs must be traceable. We will be happy to
27 # consider code for inclusion in the official distribution, but
28 # derived work must not be called official GROMACS. Details are found
29 # in the README & COPYING files - if they are missing, get the
30 # official version at http://www.gromacs.org.
31 #
32 # To help us fund GROMACS development, we humbly ask that you cite
33 # the research papers on the package. Check out http://www.gromacs.org.
34
35 # -*- coding: utf-8 -*-
36 #
37 # GROMACS documentation build configuration file, created by
38 # sphinx-quickstart on Tue Jan 13 14:28:44 2015.
39 #
40 # This file is execfile()d with the current directory set to its
41 # containing dir.
42 #
43 # Note that not all possible configuration values are present in this
44 # autogenerated file.
45 #
46 # All configuration values have a default; values that are commented out
47 # serve to show the default.
48
49 import sys
50 import os
51
52 execfile('conf-vars.py')
53 sys.path.append(gmx_sphinx_extension_path)
54
55 # If extensions (or modules to document with autodoc) are in another directory,
56 # add these directories to sys.path here. If the directory is relative to the
57 # documentation root, use os.path.abspath to make it absolute, like shown here.
58 #sys.path.insert(0, os.path.abspath('.'))
59
60 # -- General configuration ------------------------------------------------
61
62 # If your documentation needs a minimal Sphinx version, state it here.
63 #needs_sphinx = '1.0'
64
65 # Add any Sphinx extension module names here, as strings. They can be
66 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
67 # ones.
68 extensions = [
69     'sphinx.ext.graphviz',
70     'sphinx.ext.pngmath',
71     'sphinx.ext.ifconfig',
72     'gmxsphinx'
73 ]
74
75 # Add any paths that contain templates here, relative to this directory.
76 # templates_path = ['_templates']
77
78 # The suffix of source filenames.
79 source_suffix = '.rst'
80
81 # The encoding of source files.
82 #source_encoding = 'utf-8-sig'
83
84 # The master toctree document.
85 master_doc = 'index'
86
87 # General information about the project.
88 project = u'GROMACS'
89 copyright = u'2015, GROMACS development team'
90
91 # The version info for the project you're documenting, acts as replacement for
92 # |version| and |release|, also used in various other places throughout the
93 # built documents.
94 #
95 # The short X.Y version.
96 version = gmx_version_string
97 # The full version, including alpha/beta/rc tags.
98 release = gmx_version_string_full
99
100 # The language for content autogenerated by Sphinx. Refer to documentation
101 # for a list of supported languages.
102 #language = None
103
104 # There are two options for replacing |today|: either, you set today to some
105 # non-false value, then it is used:
106 #today = ''
107 # Else, today_fmt is used as the format for a strftime call.
108 #today_fmt = '%B %d, %Y'
109
110 # List of patterns, relative to source directory, that match files and
111 # directories to ignore when looking for source files.
112 exclude_patterns = ['fragments']
113 if not tags.has('do_man'):
114     exclude_patterns += ['man']
115
116 # The reST default role (used for this markup: `text`) to use for all
117 # documents.
118 #default_role = None
119
120 # If true, '()' will be appended to :func: etc. cross-reference text.
121 #add_function_parentheses = True
122
123 # If true, the current module name will be prepended to all description
124 # unit titles (such as .. function::).
125 #add_module_names = True
126
127 # If true, sectionauthor and moduleauthor directives will be shown in the
128 # output. They are ignored by default.
129 #show_authors = False
130
131 # The name of the Pygments (syntax highlighting) style to use.
132 pygments_style = 'sphinx'
133
134 # A list of ignored prefixes for module index sorting.
135 #modindex_common_prefix = []
136
137 # If true, keep warnings as "system message" paragraphs in the built documents.
138 #keep_warnings = False
139
140 # Configure the values for all the variables that might later configure any of the .rst files.
141 substitutions = ['.. |{0}| replace:: {1}'.format(*x) for x in variables if x[1]]
142 substitutions.extend(['.. |{0}| replace:: unknown'.format(x[0]) for x in variables if x[1] == ''])
143 rst_epilog = "\n".join(substitutions)
144 rst_epilog += """
145 .. |Gromacs| replace:: GROMACS
146 .. _gmx-manual: manual-{gmx_version_string}.pdf
147 .. _gmx-manual-parent-dir: ../manual-{gmx_version_string}.pdf
148 .. |gmx-source-package| replace:: ftp://ftp.gromacs.org/pub/gromacs/gromacs-{gmx_version_string}.tar.gz
149 .. |gmx-regressiontests-package| replace:: http://gerrit.gromacs.org/download/regressiontests-{regressiontest_version}.tar.gz
150 .. _up-to-date installation instructions: http://www.gromacs.org/Documentation/Installation_Instructions
151 .. _CUDA: http://www.nvidia.com/object/cuda_home_new.html
152 .. _OpenCL: https://www.khronos.org/opencl/
153 .. _OpenMPI: http://www.open-mpi.org
154 .. _MPICH: http://www.mpich.org
155 .. _LAMMPI: http://www.lam-mpi.org
156 .. _OpenMP: http://en.wikipedia.org/wiki/OpenMP
157 .. _CMake installation page: http://www.cmake.org/install/
158 .. _running CMake: http://www.cmake.org/runningcmake/
159 .. _CMake environment variables: http://cmake.org/Wiki/CMake_Useful_Variables#Environment_Variables
160 .. _FFTW: http://www.fftw.org
161 .. _FFTW installation guide: http://www.fftw.org/doc/Installation-and-Customization.html#Installation-and-Customization
162 .. _MKL: https://software.intel.com/en-us/intel-mkl
163 .. _VMD: http://www.ks.uiuc.edu/Research/vmd/
164 .. _PyMOL: http://www.pymol.org
165 .. _continuous integration server used by GROMACS: http://jenkins.gromacs.org
166 .. _Jenkins: http://jenkins-ci.org
167 .. _webpage: http://www.gromacs.org
168 .. _ftp site: ftp://ftp.gromacs.org/pub/gromacs/
169 .. _tutorials: http://www.gromacs.org/Documentation/Tutorials
170 .. _download: ../download.html
171 """.format(gmx_version_string=gmx_version_string, regressiontest_version=regressiontest_version)
172
173 # -- Options for HTML output ----------------------------------------------
174
175 # The theme to use for HTML and HTML Help pages.  See the documentation for
176 # a list of builtin themes.
177 html_theme = 'default'
178
179 # Theme options are theme-specific and customize the look and feel of a theme
180 # further.  For a list of options available for each theme, see the
181 # documentation.
182 #html_theme_options = {}
183
184 # Add any paths that contain custom themes here, relative to this directory.
185 html_theme_path = ['']
186
187 # The name for this set of Sphinx documents.  If None, it defaults to
188 # "<project> v<release> documentation".
189 html_title = u'GROMACS ' + release + ' documentation'
190
191 # A shorter title for the navigation bar.  Default is the same as html_title.
192 html_short_title = u'GROMACS ' + version
193
194 # The name of an image file (relative to this directory) to place at the top
195 # of the sidebar.
196 #html_logo = None
197
198 # The name of an image file (within the static path) to use as favicon of the
199 # docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
200 # pixels large.
201 #html_favicon = None
202
203 # Add any paths that contain custom static files (such as style sheets) here,
204 # relative to this directory. They are copied after the builtin static files,
205 # so a file named "default.css" will overwrite the builtin "default.css".
206 html_static_path = ['_static']
207
208 # Add any extra paths that contain custom files (such as robots.txt or
209 # .htaccess) here, relative to this directory. These files are copied
210 # directly to the root of the documentation.
211 #html_extra_path = []
212
213 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
214 # using the given strftime format.
215 #html_last_updated_fmt = '%b %d, %Y'
216
217 # If true, SmartyPants will be used to convert quotes and dashes to
218 # typographically correct entities.
219 #html_use_smartypants = True
220
221 # Custom sidebar templates, maps document names to template names.
222 #html_sidebars = {}
223
224 # Additional templates that should be rendered to pages, maps page names to
225 # template names.
226 #html_additional_pages = {}
227
228 # If false, no module index is generated.
229 #html_domain_indices = True
230
231 # If false, no index is generated.
232 #html_use_index = True
233
234 # If true, the index is split into individual pages for each letter.
235 #html_split_index = False
236
237 # If true, links to the reST sources are added to the pages.
238 #html_show_sourcelink = True
239
240 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
241 #html_show_sphinx = True
242
243 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
244 #html_show_copyright = True
245
246 # If true, an OpenSearch description file will be output, and all pages will
247 # contain a <link> tag referring to it.  The value of this option must be the
248 # base URL from which the finished HTML is served.
249 #html_use_opensearch = ''
250
251 # This is the file name suffix for HTML files (e.g. ".xhtml").
252 #html_file_suffix = None
253
254 # Output file base name for HTML help builder.
255 htmlhelp_basename = 'Gromacsdoc'
256
257
258 # -- Options for LaTeX output ---------------------------------------------
259
260 latex_elements = {
261 # The paper size ('letterpaper' or 'a4paper').
262 'papersize': 'a4paper',
263
264 # The font size ('10pt', '11pt' or '12pt').
265 'pointsize': '10',
266
267 # Additional stuff for the LaTeX preamble.
268 #'preamble': '',
269 }
270
271 # Grouping the document tree into LaTeX files. List of tuples
272 # (source start file, target name, title,
273 #  author, documentclass [howto, manual, or own class]).
274 latex_documents = [
275   ('index', 'Gromacs.tex', u'GROMACS Documentation',
276    u'GROMACS development team', 'manual'),
277 ]
278
279 # The name of an image file (relative to this directory) to place at the top of
280 # the title page.
281 #latex_logo = None
282
283 # For "manual" documents, if this is true, then toplevel headings are parts,
284 # not chapters.
285 #latex_use_parts = False
286
287 # If true, show page references after internal links.
288 #latex_show_pagerefs = False
289
290 # If true, show URL addresses after external links.
291 #latex_show_urls = False
292
293 # Documents to append as an appendix to all manuals.
294 #latex_appendices = []
295
296 # If false, no module index is generated.
297 #latex_domain_indices = True
298
299
300 # -- Options for manual page output ---------------------------------------
301
302 # One entry per manual page. List of tuples
303 # (source start file, name, description, authors, manual section).
304 execfile('conf-man.py')
305
306 # If true, show URL addresses after external links.
307 #man_show_urls = False
308
309
310 # -- Options for Texinfo output -------------------------------------------
311
312 # Grouping the document tree into Texinfo files. List of tuples
313 # (source start file, target name, title, author,
314 #  dir menu entry, description, category)
315 texinfo_documents = [
316   ('index', 'GROMACS', u'GROMACS Documentation',
317    u'GROMACS development team', 'GROMACS', 'One line description of project.',
318    'Miscellaneous'),
319 ]
320
321 # Documents to append as an appendix to all manuals.
322 #texinfo_appendices = []
323
324 # If false, no module index is generated.
325 #texinfo_domain_indices = True
326
327 # How to display URL addresses: 'footnote', 'no', or 'inline'.
328 #texinfo_show_urls = 'footnote'
329
330 # If true, do not generate a @detailmenu in the "Top" node's menu.
331 #texinfo_no_detailmenu = False