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