Change the behavior of the GPU update UI
[alexxy/gromacs.git] / docs / conf.py
1 #
2 # This file is part of the GROMACS molecular simulation package.
3 #
4 # Copyright (c) 2015,2016,2017,2018,2019, 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 datetime
50 import os
51 import sys
52
53 exec(open('conf-vars.py').read())
54 sys.path.append(gmx_sphinx_extension_path)
55 if releng_path and os.path.isdir(releng_path):
56     sys.path.append(releng_path)
57 if gmxapi_staging_path and os.path.isdir(gmxapi_staging_path):
58     sys.path.append(gmxapi_staging_path)
59
60 # If extensions (or modules to document with autodoc) are in another directory,
61 # add these directories to sys.path here. If the directory is relative to the
62 # documentation root, use os.path.abspath to make it absolute, like shown here.
63 #sys.path.insert(0, os.path.abspath('.'))
64
65 # -- General configuration ------------------------------------------------
66
67 # If your documentation needs a minimal Sphinx version, state it here.
68 # gmx_min_sphinx is set from the expected minimum version of Sphinx
69 # in CMakeLists.txt
70 needs_sphinx = gmx_min_sphinx
71
72 # Add any Sphinx extension module names here, as strings. They can be
73 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
74 # ones.
75 extensions = [
76     'sphinx.ext.autodoc',
77     'sphinx.ext.graphviz',
78     'sphinx.ext.extlinks',
79     'sphinx.ext.napoleon',
80     'sphinx.ext.doctest',
81     'sphinx.ext.ifconfig',
82     'sphinx.ext.intersphinx',
83     'sphinx.ext.mathjax',
84     'sphinx.ext.napoleon',
85     'sphinx.ext.todo',
86     'gmxsphinx'
87 ]
88 extlinks = {'issue': ('https://redmine.gromacs.org/issues/%s',
89                       'Issue ')}
90
91 # Add any paths that contain templates here, relative to this directory.
92 # templates_path = ['_templates']
93
94 # The suffix of source filenames.
95 source_suffix = '.rst'
96
97 # The encoding of source files.
98 #source_encoding = 'utf-8-sig'
99
100 # The master toctree document.
101 master_doc = 'index'
102
103 # General information about the project.
104 project = u'GROMACS'
105 copyright = str(datetime.datetime.now().year) + u', GROMACS development team'
106 thisyear_string = str(datetime.datetime.now().year)
107 # The version info for the project you're documenting, acts as replacement for
108 # |version| and |release|, also used in various other places throughout the
109 # built documents.
110 #
111 # The short X.Y version.
112 version = gmx_version_string
113 # The full version, including alpha/beta/rc tags.
114 release = gmx_version_string_full
115 # default file extension for plots
116 plotext = u'.eps'
117
118 # The language for content autogenerated by Sphinx. Refer to documentation
119 # for a list of supported languages.
120 #language = None
121
122 # There are two options for replacing |today|: either, you set today to some
123 # non-false value, then it is used:
124 #today = ''
125 # Else, today_fmt is used as the format for a strftime call.
126 #today_fmt = '%B %d, %Y'
127
128 # List of patterns, relative to source directory, that match files and
129 # directories to ignore when looking for source files.
130 exclude_patterns = ['fragments']
131 if not tags.has('do_man'):
132     exclude_patterns += ['man']
133
134 # Set variable if documentation build can convert images or not
135 # to selectively include files in reference manual
136 def setup(app):
137     app.add_config_value('gmx_image_convert', 'impossible', 'env')
138
139 # The reST default role (used for this markup: `text`) to use for all
140 # documents.
141 default_role = 'any'
142
143 # If true, '()' will be appended to :func: etc. cross-reference text.
144 #add_function_parentheses = True
145
146 # If true, the current module name will be prepended to all description
147 # unit titles (such as .. function::).
148 #add_module_names = True
149
150 # If true, sectionauthor and moduleauthor directives will be shown in the
151 # output. They are ignored by default.
152 #show_authors = False
153
154 # The name of the Pygments (syntax highlighting) style to use.
155 pygments_style = 'sphinx'
156
157 # A list of ignored prefixes for module index sorting.
158 #modindex_common_prefix = []
159
160 # If true, keep warnings as "system message" paragraphs in the built documents.
161 #keep_warnings = False
162
163 # Configure the values for all the variables that might later configure any of the .rst files.
164 substitutions = ['.. |{0}| replace:: {1}'.format(*x) for x in variables if x[1]]
165 substitutions.extend(['.. |{0}| replace:: unknown'.format(x[0]) for x in variables if x[1] == ''])
166 rst_epilog = "\n".join(substitutions)
167 rst_epilog += """
168 .. |Gromacs| replace:: GROMACS
169 .. _gmx-manual: manual-{gmx_version_string}.pdf
170 .. _gmx-manual-parent-dir: ../manual-{gmx_version_string}.pdf
171 .. |gmx-source-package-ftp| replace:: As ftp ftp://ftp.gromacs.org/pub/gromacs/gromacs-{gmx_version_string}.tar.gz
172 .. |gmx-source-package-http| replace:: As http http://ftp.gromacs.org/pub/gromacs/gromacs-{gmx_version_string}.tar.gz
173 .. |gmx-regressiontests-package| replace:: http://gerrit.gromacs.org/download/regressiontests-{regressiontest_version}.tar.gz
174 .. _up-to-date installation instructions: http://manual.gromacs.org/documentation/current/install-guide/index.html
175 .. _CUDA: http://www.nvidia.com/object/cuda_home_new.html
176 .. _OpenCL: https://www.khronos.org/opencl/
177 .. _OpenMPI: http://www.open-mpi.org
178 .. _MPICH: http://www.mpich.org
179 .. _LAM-MPI: http://www.lam-mpi.org
180 .. _OpenMP: http://en.wikipedia.org/wiki/OpenMP
181 .. _CMake installation page: http://www.cmake.org/install/
182 .. _Ubuntu toolchain ppa page: https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
183 .. _EPEL page: https://fedoraproject.org/wiki/EPEL
184 .. _running CMake: http://www.cmake.org/runningcmake/
185 .. _CMake environment variables: http://cmake.org/Wiki/CMake_Useful_Variables#Environment_Variables
186 .. _FFTW: http://www.fftw.org
187 .. _FFTW installation guide: http://www.fftw.org/doc/Installation-and-Customization.html#Installation-and-Customization
188 .. _MKL: https://software.intel.com/en-us/intel-mkl
189 .. _VMD: http://www.ks.uiuc.edu/Research/vmd/
190 .. _PyMOL: http://www.pymol.org
191 .. _continuous integration server used by GROMACS: http://jenkins.gromacs.org
192 .. _Jenkins: http://jenkins-ci.org
193 .. _webpage: http://www.gromacs.org
194 .. _ftp site: ftp://ftp.gromacs.org/pub/gromacs/
195 .. _tutorials: http://www.gromacs.org/Documentation/Tutorials
196 .. _redmine: http://redmine.gromacs.org
197 .. _gerrit: http://gerrit.gromacs.org
198 .. _download: ../download.html
199 .. |thisyear| replace:: {thisyear_string}
200 """.format(gmx_version_string=gmx_version_string, regressiontest_version=regressiontest_version, thisyear_string=thisyear_string)
201
202 # -- Options for HTML output ----------------------------------------------
203
204 # The theme to use for HTML and HTML Help pages.  See the documentation for
205 # a list of builtin themes.
206 html_theme = 'classic'
207
208 # Theme options are theme-specific and customize the look and feel of a theme
209 # further.  For a list of options available for each theme, see the
210 # documentation.
211 #html_theme_options = {}
212
213 # Add any paths that contain custom themes here, relative to this directory.
214 html_theme_path = ['']
215
216 # The name for this set of Sphinx documents.  If None, it defaults to
217 # "<project> v<release> documentation".
218 html_title = u'GROMACS ' + release + ' documentation'
219
220 # A shorter title for the navigation bar.  Default is the same as html_title.
221 html_short_title = u'GROMACS ' + version
222
223 # The name of an image file (relative to this directory) to place at the top
224 # of the sidebar.
225 #html_logo = None
226
227 # The name of an image file (within the static path) to use as favicon of the
228 # docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
229 # pixels large.
230 #html_favicon = None
231
232 # Add any paths that contain custom static files (such as style sheets) here,
233 # relative to this directory. They are copied after the builtin static files,
234 # so a file named "default.css" will overwrite the builtin "default.css".
235 html_static_path = ['_static']
236
237 # Add any extra paths that contain custom files (such as robots.txt or
238 # .htaccess) here, relative to this directory. These files are copied
239 # directly to the root of the documentation.
240 #html_extra_path = []
241
242 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
243 # using the given strftime format.
244 #html_last_updated_fmt = '%b %d, %Y'
245
246 # If true, SmartyPants will be used to convert quotes and dashes to
247 # typographically correct entities.
248 #html_use_smartypants = True
249
250 # Custom sidebar templates, maps document names to template names.
251 #html_sidebars = {}
252
253 # Additional templates that should be rendered to pages, maps page names to
254 # template names.
255 #html_additional_pages = {}
256
257 # If false, no module index is generated.
258 #html_domain_indices = True
259
260 # If false, no index is generated.
261 #html_use_index = True
262
263 # If true, the index is split into individual pages for each letter.
264 #html_split_index = False
265
266 # If true, links to the reST sources are added to the pages.
267 #html_show_sourcelink = True
268
269 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
270 #html_show_sphinx = True
271
272 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
273 #html_show_copyright = True
274
275 # If true, an OpenSearch description file will be output, and all pages will
276 # contain a <link> tag referring to it.  The value of this option must be the
277 # base URL from which the finished HTML is served.
278 #html_use_opensearch = ''
279
280 # This is the file name suffix for HTML files (e.g. ".xhtml").
281 #html_file_suffix = None
282
283 # Output file base name for HTML help builder.
284 htmlhelp_basename = 'Gromacsdoc'
285
286
287 # -- Options for LaTeX output ---------------------------------------------
288
289 latex_elements = {
290 # The paper size ('letterpaper' or 'a4paper').
291 'papersize': 'a4paper',
292
293
294 # The font size ('10pt', '11pt' or '12pt').
295 'pointsize': '11',
296
297 # Additional stuff for the LaTeX preamble.
298 # The tocdepth setting is needed to overwrite the default value set by Sphinx
299 # to get a more detailed toctree in the pdf version of the manual.
300     'preamble': r'''
301     \usepackage{here}
302     \usepackage{picins}
303     \usepackage{underscore}
304     \usepackage{tabularx}
305     \usepackage{multicol}
306     \usepackage{dcolumn}
307     \usepackage{makeidx}
308     \usepackage{times}
309     \usepackage{ifthen}
310     \usepackage{enumitem}
311     \usepackage{longtable}
312     \usepackage{pdflscape}
313     \pagenumbering{roman}
314     \usepackage{array}
315     \setcounter{tocdepth}{2}
316     ''',
317 # Format output to avoid empty pages
318   'classoptions': ',openany,oneside'
319 }
320
321 # Grouping the document tree into LaTeX files. List of tuples
322 # (source start file, target name, title,
323 #  author, documentclass [howto, manual, or own class]).
324 latex_documents = [
325   ('index', 'gromacs.tex', u'GROMACS Documentation',
326    u'GROMACS development team', 'manual'),
327 ]
328
329 # The name of an image file (relative to this directory) to place at the top of
330 # the title page.
331 latex_logo = 'reference-manual/plots/peregrine.png'
332
333 # For "manual" documents, if this is true, then toplevel headings are parts,
334 # not chapters.
335 latex_use_parts = True
336
337 # If true, show page references after internal links.
338 latex_show_pagerefs = True
339
340 # If true, show URL addresses after external links.
341 #latex_show_urls = False
342
343 # Documents to append as an appendix to all manuals.
344 #latex_appendices = []
345
346 # If false, no module index is generated.
347 #latex_domain_indices = True
348
349
350 # -- Options for manual page output ---------------------------------------
351
352 # One entry per manual page. List of tuples
353 # (source start file, name, description, authors, manual section).
354 if tags.has('do_man'):
355     exec(open('conf-man.py').read())
356
357 # If true, show URL addresses after external links.
358 #man_show_urls = False
359
360
361 # -- Options for Texinfo output -------------------------------------------
362
363 # Grouping the document tree into Texinfo files. List of tuples
364 # (source start file, target name, title, author,
365 #  dir menu entry, description, category)
366 texinfo_documents = [
367   ('index', 'GROMACS', u'GROMACS Documentation',
368    u'GROMACS development team', 'GROMACS', 'One line description of project.',
369    'Miscellaneous'),
370 ]
371
372 # Documents to append as an appendix to all manuals.
373 #texinfo_appendices = []
374
375 # If false, no module index is generated.
376 #texinfo_domain_indices = True
377
378 # How to display URL addresses: 'footnote', 'no', or 'inline'.
379 #texinfo_show_urls = 'footnote'
380
381 # If true, do not generate a @detailmenu in the "Top" node's menu.
382 #texinfo_no_detailmenu = False
383
384 # Make it possible to use numbered labels for figures and tables
385 numfig = True
386
387 # -- Options for intersphinx extension ------------------------------------
388
389 intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}
390 intersphinx_cache_limit = -1
391 intersphinx_timeout = 10