2 # This file is part of the GROMACS molecular simulation package.
4 # Copyright (c) 2015,2016,2017,2018,2019 by the GROMACS development team.
5 # Copyright (c) 2020, by the GROMACS development team, led by
6 # Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
7 # and including many others, as listed in the AUTHORS file in the
8 # top-level source directory and at http://www.gromacs.org.
10 # GROMACS is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU Lesser General Public License
12 # as published by the Free Software Foundation; either version 2.1
13 # of the License, or (at your option) any later version.
15 # GROMACS is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public
21 # License along with GROMACS; if not, see
22 # http://www.gnu.org/licenses, or write to the Free Software Foundation,
23 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 # If you want to redistribute modifications to GROMACS, please
26 # consider that scientific software is very special. Version
27 # control is crucial - bugs must be traceable. We will be happy to
28 # consider code for inclusion in the official distribution, but
29 # derived work must not be called official GROMACS. Details are found
30 # in the README & COPYING files - if they are missing, get the
31 # official version at http://www.gromacs.org.
33 # To help us fund GROMACS development, we humbly ask that you cite
34 # the research papers on the package. Check out http://www.gromacs.org.
36 # -*- coding: utf-8 -*-
38 # GROMACS documentation build configuration file, created by
39 # sphinx-quickstart on Tue Jan 13 14:28:44 2015.
41 # This file is execfile()d with the current directory set to its
44 # Note that not all possible configuration values are present in this
47 # All configuration values have a default; values that are commented out
48 # serve to show the default.
54 # The following definitions are completed via CMake machinery.
55 gmx_containers_path
= '@GMX_ADMIN_DIR@/containers'
56 gmx_sphinx_extension_path
= '@SPHINX_EXTENSION_PATH@'
57 gmxapi_staging_path
= '@GMXAPI_PYTHON_STAGING_DIR@'
58 releng_path
= '@RELENG_PATH@'
59 gmx_version_string
= '@GMX_VERSION_STRING@'
60 gmx_version_string_full
= '@GMX_VERSION_STRING_FULL@'
61 regressiontest_version
= '@REGRESSIONTEST_VERSION@'
62 gmx_min_sphinx
= '@EXPECTED_SPHINX_VERSION@'
63 gmx_image_convert
= '@IMAGE_CONVERT_STRING@'
65 ('EXPECTED_DOXYGEN_VERSION', '@EXPECTED_DOXYGEN_VERSION@'),
66 ('EXPECTED_SPHINX_VERSION', '@EXPECTED_SPHINX_VERSION@'),
67 ('CMAKE_MINIMUM_REQUIRED_VERSION', '@CMAKE_MINIMUM_REQUIRED_VERSION@'),
68 ('REQUIRED_CUDA_VERSION', '@REQUIRED_CUDA_VERSION@'),
69 ('REQUIRED_CUDA_COMPUTE_CAPABILITY', '@REQUIRED_CUDA_COMPUTE_CAPABILITY@'),
70 ('REQUIRED_OPENCL_MIN_VERSION', '@REQUIRED_OPENCL_MIN_VERSION@'),
71 ('SOURCE_MD5SUM', '@SOURCE_MD5SUM@'),
72 ('REGRESSIONTEST_MD5SUM', '@REGRESSIONTEST_MD5SUM_STRING@'),
73 ('GMX_TNG_MINIMUM_REQUIRED_VERSION', '@GMX_TNG_MINIMUM_REQUIRED_VERSION@'),
74 ('GMX_LMFIT_REQUIRED_VERSION', '@GMX_LMFIT_REQUIRED_VERSION@'),
75 ('GMX_MANUAL_DOI_STRING', '@GMX_MANUAL_DOI_STRING@'),
76 ('GMX_SOURCE_DOI_STRING', '@GMX_SOURCE_DOI_STRING@')
78 # End of build-time substitutions.
80 sys
.path
.append(gmx_containers_path
)
81 sys
.path
.append(gmx_sphinx_extension_path
)
82 if releng_path
and os
.path
.isdir(releng_path
):
83 sys
.path
.append(releng_path
)
84 if gmxapi_staging_path
and os
.path
.isdir(gmxapi_staging_path
):
85 sys
.path
.append(gmxapi_staging_path
)
87 # If extensions (or modules to document with autodoc) are in another directory,
88 # add these directories to sys.path here. If the directory is relative to the
89 # documentation root, use os.path.abspath to make it absolute, like shown here.
90 #sys.path.insert(0, os.path.abspath('.'))
92 # -- General configuration ------------------------------------------------
94 # If your documentation needs a minimal Sphinx version, state it here.
95 # gmx_min_sphinx is set from the expected minimum version of Sphinx
97 needs_sphinx
= gmx_min_sphinx
99 # Add any Sphinx extension module names here, as strings. They can be
100 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
103 'sphinx.ext.autodoc',
104 'sphinx.ext.graphviz',
105 'sphinx.ext.extlinks',
106 'sphinx.ext.napoleon',
107 'sphinx.ext.doctest',
108 'sphinx.ext.ifconfig',
109 'sphinx.ext.intersphinx',
110 'sphinx.ext.mathjax',
111 'sphinx.ext.napoleon',
113 # The viewcode extension requires extra configuration or consideration to
114 # avoid collecting sources for external packages (through intersphninx) or
115 # generating broken links for compiled extension modules that do not have
116 # inspectable 'code' member data.
117 # Ref: https://www.sphinx-doc.org/en/master/usage/extensions/viewcode.html
118 # Please run linkchecker and inspect the generated
119 # docs/html/_modules/index.html page before committing a change that enables
120 # 'sphinx.ext.viewcode',
123 extlinks
= {'issue': ('https://gitlab.com/gromacs/gromacs/-/issues/%s',
126 # Add any paths that contain templates here, relative to this directory.
127 # templates_path = ['_templates']
129 # The suffix of source filenames.
130 source_suffix
= '.rst'
132 # The encoding of source files.
133 #source_encoding = 'utf-8-sig'
135 # The master toctree document.
138 # General information about the project.
140 copyright
= str(datetime
.datetime
.now().year
) + u
', GROMACS development team'
141 thisyear_string
= str(datetime
.datetime
.now().year
)
142 # The version info for the project you're documenting, acts as replacement for
143 # |version| and |release|, also used in various other places throughout the
146 # The short X.Y version.
147 version
= gmx_version_string
148 # The full version, including alpha/beta/rc tags.
149 release
= gmx_version_string_full
150 # default file extension for plots
153 # The language for content autogenerated by Sphinx. Refer to documentation
154 # for a list of supported languages.
157 # There are two options for replacing |today|: either, you set today to some
158 # non-false value, then it is used:
160 # Else, today_fmt is used as the format for a strftime call.
161 #today_fmt = '%B %d, %Y'
163 # List of patterns, relative to source directory, that match files and
164 # directories to ignore when looking for source files.
165 exclude_patterns
= ['fragments']
166 if not tags
.has('do_man'):
167 exclude_patterns
+= ['man']
169 # Set variable if documentation build can convert images or not
170 # to selectively include files in reference manual
172 app
.add_config_value('gmx_image_convert', 'impossible', 'env')
174 # The reST default role (used for this markup: `text`) to use for all
178 # If true, '()' will be appended to :func: etc. cross-reference text.
179 #add_function_parentheses = True
181 # If true, the current module name will be prepended to all description
182 # unit titles (such as .. function::).
183 #add_module_names = True
185 # If true, sectionauthor and moduleauthor directives will be shown in the
186 # output. They are ignored by default.
187 #show_authors = False
189 # The name of the Pygments (syntax highlighting) style to use.
190 pygments_style
= 'sphinx'
192 # A list of ignored prefixes for module index sorting.
193 #modindex_common_prefix = []
195 # If true, keep warnings as "system message" paragraphs in the built documents.
196 #keep_warnings = False
198 # Configure the values for all the variables that might later configure any of the .rst files.
199 substitutions
= ['.. |{0}| replace:: {1}'.format(*x
) for x
in variables
if x
[1]]
200 substitutions
.extend(['.. |{0}| replace:: unknown'.format(x
[0]) for x
in variables
if x
[1] == ''])
201 rst_epilog
= "\n".join(substitutions
)
203 .. |Gromacs| replace:: GROMACS
204 .. _gmx-manual: manual-{gmx_version_string}.pdf
205 .. _gmx-manual-parent-dir: ../manual-{gmx_version_string}.pdf
206 .. |gmx-source-package-ftp| replace:: As ftp ftp://ftp.gromacs.org/pub/gromacs/gromacs-{gmx_version_string}.tar.gz
207 .. |gmx-source-package-http| replace:: As http http://ftp.gromacs.org/pub/gromacs/gromacs-{gmx_version_string}.tar.gz
208 .. |gmx-regressiontests-package| replace:: http://gerrit.gromacs.org/download/regressiontests-{regressiontest_version}.tar.gz
209 .. _up-to-date installation instructions: http://manual.gromacs.org/documentation/current/install-guide/index.html
210 .. _CUDA: http://www.nvidia.com/object/cuda_home_new.html
211 .. _OpenCL: https://www.khronos.org/opencl/
212 .. _OpenMPI: http://www.open-mpi.org
213 .. _MPICH: http://www.mpich.org
214 .. _LAM-MPI: http://www.lam-mpi.org
215 .. _OpenMP: http://en.wikipedia.org/wiki/OpenMP
216 .. _CMake installation page: http://www.cmake.org/install/
217 .. _Ubuntu toolchain ppa page: https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
218 .. _EPEL page: https://fedoraproject.org/wiki/EPEL
219 .. _running CMake: http://www.cmake.org/runningcmake/
220 .. _CMake environment variables: http://cmake.org/Wiki/CMake_Useful_Variables#Environment_Variables
221 .. _FFTW: http://www.fftw.org
222 .. _FFTW installation guide: http://www.fftw.org/doc/Installation-and-Customization.html#Installation-and-Customization
223 .. _MKL: https://software.intel.com/en-us/intel-mkl
224 .. _VMD: http://www.ks.uiuc.edu/Research/vmd/
225 .. _PyMOL: http://www.pymol.org
226 .. _continuous integration server used by GROMACS: http://jenkins.gromacs.org
227 .. _Jenkins: http://jenkins-ci.org
228 .. _webpage: http://www.gromacs.org
229 .. _ftp site: ftp://ftp.gromacs.org/pub/gromacs/
230 .. _tutorials: http://www.gromacs.org/Documentation/Tutorials
231 .. _issue tracker: https://gitlab.com/gromacs/gromacs/-/issues/
232 .. _issues: https://gitlab.com/gromacs/gromacs/-/issues/
233 .. _gitlab: https://gitlab.com/gromacs/gromacs/
234 .. _redmine: http://redmine.gromacs.org
235 .. _gerrit: http://gerrit.gromacs.org
236 .. _download: ../download.html
237 .. |thisyear| replace:: {thisyear_string}
238 """.format(gmx_version_string
=gmx_version_string
, regressiontest_version
=regressiontest_version
, thisyear_string
=thisyear_string
)
240 # -- Options for HTML output ----------------------------------------------
242 # The theme to use for HTML and HTML Help pages. See the documentation for
243 # a list of builtin themes.
244 html_theme
= 'classic'
246 # Theme options are theme-specific and customize the look and feel of a theme
247 # further. For a list of options available for each theme, see the
249 #html_theme_options = {}
251 # Add any paths that contain custom themes here, relative to this directory.
252 html_theme_path
= ['']
254 # The name for this set of Sphinx documents. If None, it defaults to
255 # "<project> v<release> documentation".
256 html_title
= u
'GROMACS ' + release
+ ' documentation'
258 # A shorter title for the navigation bar. Default is the same as html_title.
259 html_short_title
= u
'GROMACS ' + version
261 # The name of an image file (relative to this directory) to place at the top
265 # The name of an image file (within the static path) to use as favicon of the
266 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
270 # Add any paths that contain custom static files (such as style sheets) here,
271 # relative to this directory. They are copied after the builtin static files,
272 # so a file named "default.css" will overwrite the builtin "default.css".
273 html_static_path
= ['_static']
275 # Add any extra paths that contain custom files (such as robots.txt or
276 # .htaccess) here, relative to this directory. These files are copied
277 # directly to the root of the documentation.
278 #html_extra_path = []
280 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
281 # using the given strftime format.
282 #html_last_updated_fmt = '%b %d, %Y'
284 # If true, SmartyPants will be used to convert quotes and dashes to
285 # typographically correct entities.
286 #html_use_smartypants = True
288 # Custom sidebar templates, maps document names to template names.
291 # Additional templates that should be rendered to pages, maps page names to
293 #html_additional_pages = {}
295 # If false, no module index is generated.
296 #html_domain_indices = True
298 # If false, no index is generated.
299 #html_use_index = True
301 # If true, the index is split into individual pages for each letter.
302 #html_split_index = False
304 # If true, links to the reST sources are added to the pages.
305 #html_show_sourcelink = True
307 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
308 #html_show_sphinx = True
310 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
311 #html_show_copyright = True
313 # If true, an OpenSearch description file will be output, and all pages will
314 # contain a <link> tag referring to it. The value of this option must be the
315 # base URL from which the finished HTML is served.
316 #html_use_opensearch = ''
318 # This is the file name suffix for HTML files (e.g. ".xhtml").
319 #html_file_suffix = None
321 # Output file base name for HTML help builder.
322 htmlhelp_basename
= 'Gromacsdoc'
325 # -- Options for LaTeX output ---------------------------------------------
328 # The paper size ('letterpaper' or 'a4paper').
329 'papersize': 'a4paper',
332 # The font size ('10pt', '11pt' or '12pt').
335 # Additional stuff for the LaTeX preamble.
336 # The tocdepth setting is needed to overwrite the default value set by Sphinx
337 # to get a more detailed toctree in the pdf version of the manual.
341 \usepackage{underscore}
342 \usepackage{tabularx}
343 \usepackage{multicol}
348 \usepackage{enumitem}
349 \usepackage{longtable}
350 \usepackage{pdflscape}
351 \pagenumbering{roman}
353 \setcounter{tocdepth}{2}
355 # Format output to avoid empty pages
356 'classoptions': ',openany,oneside'
359 # Grouping the document tree into LaTeX files. List of tuples
360 # (source start file, target name, title,
361 # author, documentclass [howto, manual, or own class]).
363 ('index', 'gromacs.tex', u
'GROMACS Documentation',
364 u
'GROMACS development team', 'manual'),
367 # The name of an image file (relative to this directory) to place at the top of
369 latex_logo
= 'reference-manual/plots/peregrine.png'
371 # For "manual" documents, if this is true, then toplevel headings are parts,
373 latex_use_parts
= True
375 # If true, show page references after internal links.
376 latex_show_pagerefs
= True
378 # If true, show URL addresses after external links.
379 #latex_show_urls = False
381 # Documents to append as an appendix to all manuals.
382 #latex_appendices = []
384 # If false, no module index is generated.
385 #latex_domain_indices = True
388 # -- Options for manual page output ---------------------------------------
390 # One entry per manual page. List of tuples
391 # (source start file, name, description, authors, manual section).
392 if tags
.has('do_man'):
393 exec(open('conf-man.py').read())
395 # If true, show URL addresses after external links.
396 #man_show_urls = False
399 # -- Options for Texinfo output -------------------------------------------
401 # Grouping the document tree into Texinfo files. List of tuples
402 # (source start file, target name, title, author,
403 # dir menu entry, description, category)
404 texinfo_documents
= [
405 ('index', 'GROMACS', u
'GROMACS Documentation',
406 u
'GROMACS development team', 'GROMACS', 'One line description of project.',
410 # Documents to append as an appendix to all manuals.
411 #texinfo_appendices = []
413 # If false, no module index is generated.
414 #texinfo_domain_indices = True
416 # How to display URL addresses: 'footnote', 'no', or 'inline'.
417 #texinfo_show_urls = 'footnote'
419 # If true, do not generate a @detailmenu in the "Top" node's menu.
420 #texinfo_no_detailmenu = False
422 # Make it possible to use numbered labels for figures and tables
425 # -- Options for autodoc extension ----------------------------------------
427 # http://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#confval-autodoc-mock-imports
428 autodoc_mock_imports
= ['hpccm', 'hpccm.config']
430 # -- Options for intersphinx extension ------------------------------------
432 intersphinx_mapping
= {'python': ('https://docs.python.org/3', None)}
433 intersphinx_cache_limit
= -1
434 intersphinx_timeout
= 10