067ce0d426cf84b0f7073915d4dea001472dc8ea
[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
54 # If extensions (or modules to document with autodoc) are in another directory,
55 # add these directories to sys.path here. If the directory is relative to the
56 # documentation root, use os.path.abspath to make it absolute, like shown here.
57 #sys.path.insert(0, os.path.abspath('.'))
58
59 # -- General configuration ------------------------------------------------
60
61 # If your documentation needs a minimal Sphinx version, state it here.
62 #needs_sphinx = '1.0'
63
64 # Add any Sphinx extension module names here, as strings. They can be
65 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
66 # ones.
67 extensions = [
68     'sphinx.ext.pngmath',
69     'sphinx.ext.ifconfig',
70 ]
71
72 # Add any paths that contain templates here, relative to this directory.
73 # templates_path = ['_templates']
74
75 # The suffix of source filenames.
76 source_suffix = '.rst'
77
78 # The encoding of source files.
79 #source_encoding = 'utf-8-sig'
80
81 # The master toctree document.
82 master_doc = 'index'
83
84 # General information about the project.
85 project = u'GROMACS'
86 copyright = u'2015, GROMACS development team'
87
88 # The version info for the project you're documenting, acts as replacement for
89 # |version| and |release|, also used in various other places throughout the
90 # built documents.
91 #
92 # The short X.Y version.
93 version = gmx_version_string
94 # The full version, including alpha/beta/rc tags.
95 release = gmx_version_string_full
96
97 # The language for content autogenerated by Sphinx. Refer to documentation
98 # for a list of supported languages.
99 #language = None
100
101 # There are two options for replacing |today|: either, you set today to some
102 # non-false value, then it is used:
103 #today = ''
104 # Else, today_fmt is used as the format for a strftime call.
105 #today_fmt = '%B %d, %Y'
106
107 # List of patterns, relative to source directory, that match files and
108 # directories to ignore when looking for source files.
109 # exclude_patterns = []
110
111 # The reST default role (used for this markup: `text`) to use for all
112 # documents.
113 #default_role = None
114
115 # If true, '()' will be appended to :func: etc. cross-reference text.
116 #add_function_parentheses = True
117
118 # If true, the current module name will be prepended to all description
119 # unit titles (such as .. function::).
120 #add_module_names = True
121
122 # If true, sectionauthor and moduleauthor directives will be shown in the
123 # output. They are ignored by default.
124 #show_authors = False
125
126 # The name of the Pygments (syntax highlighting) style to use.
127 pygments_style = 'sphinx'
128
129 # A list of ignored prefixes for module index sorting.
130 #modindex_common_prefix = []
131
132 # If true, keep warnings as "system message" paragraphs in the built documents.
133 #keep_warnings = False
134
135 # Configure the values for all the variables that might later configure any of the .rst files.
136 substitutions = ['.. |{0}| replace:: {1}'.format(*x) for x in variables if x[1]]
137 substitutions.extend(['.. |{0}| replace:: unknown'.format(x[0]) for x in variables if x[1] == ''])
138 rst_epilog = "\n".join(substitutions)
139 rst_epilog += """
140 .. |Gromacs| replace:: GROMACS
141 .. _gmx-manual: manual-{gmx_version_string}.pdf
142 .. _gmx-manual-parent-dir: ../manual-{gmx_version_string}.pdf
143 .. _gmx-regression-tests: http://gerrit.gromacs.org/download/regressiontests-{regressiontest_version}.tar.gz
144 .. _gmx-source-package: gromacs-{gmx_version_string}.tar.gz
145 .. |gmx-source-package| replace:: gromacs-{gmx_version_string}.tar.gz
146 .. _gmx-regressiontests-package: regressiontests-{gmx_version_string}.tar.gz
147 .. |gmx-regressiontests-package| replace:: regressiontests-{gmx_version_string}.tar.gz
148
149 .. _up-to-date installation instructions: http://www.gromacs.org/Documentation/Installation_Instructions
150 .. _CUDA: http://www.nvidia.com/object/cuda_home_new.html
151 .. _OpenMPI: http://www.open-mpi.org
152 .. _MPICH: http://www.mpich.org
153 .. _LAMMPI: http://www.lam-mpi.org
154 .. _OpenMP: http://en.wikipedia.org/wiki/OpenMP
155 .. _CMake installation page: http://www.cmake.org/install/
156 .. _running CMake: http://www.cmake.org/runningcmake/
157 .. _CMake environment variables: http://cmake.org/Wiki/CMake_Useful_Variables#Environment_Variables
158 .. _FFTW: http://www.fftw.org
159 .. _FFTW installation guide: http://www.fftw.org/doc/Installation-and-Customization.html#Installation-and-Customization
160 .. _MKL: https://software.intel.com/en-us/intel-mkl
161 .. _VMD: http://www.ks.uiuc.edu/Research/vmd/
162 .. _PyMOL: http://www.pymol.org
163 .. _continuous integration server used by Gromacs: http://jenkins.gromacs.org
164 .. _Jenkins: http://jenkins-ci.org
165 .. _webpage: http://www.gromacs.org
166 .. _ftp site: ftp://ftp.gromacs.org/pub/gromacs/
167 .. _tutorials: http://www.gromacs.org/Documentation/Tutorials
168 .. _sample mdp file: ../online/mdp.html
169 .. _download: ../download.html
170
171 .. _pdb: ../online/pdb.html
172 .. _gro: ../online/gro.html
173 .. _top: ../online/top.html
174 .. _cpt: ../online/cpt.html
175 .. _trr: ../online/trr.html
176 .. _xtc: ../online/xtc.html
177 .. _tng: ../online/tng.html
178 .. _tpr: ../online/tpr.html
179 .. _ndx: ../online/ndx.html
180 .. _mdp: ../online/mdp.html
181 .. _log: ../online/log.html
182 .. _xvg: ../online/xvg.html
183 .. _xpm: ../online/xpm.html
184 .. _eps: ../online/eps.html
185 .. _edr: ../online/edr.html
186 .. _rtp: ../online/rtp.html
187 """.format(gmx_version_string=gmx_version_string, regressiontest_version=regressiontest_version)
188
189 # -- Options for HTML output ----------------------------------------------
190
191 # The theme to use for HTML and HTML Help pages.  See the documentation for
192 # a list of builtin themes.
193 html_theme = 'default'
194
195 # Theme options are theme-specific and customize the look and feel of a theme
196 # further.  For a list of options available for each theme, see the
197 # documentation.
198 #html_theme_options = {}
199
200 # Add any paths that contain custom themes here, relative to this directory.
201 html_theme_path = ['']
202
203 # The name for this set of Sphinx documents.  If None, it defaults to
204 # "<project> v<release> documentation".
205 html_title = u'GROMACS ' + release + ' documentation'
206
207 # A shorter title for the navigation bar.  Default is the same as html_title.
208 html_short_title = u'GROMACS ' + version
209
210 # The name of an image file (relative to this directory) to place at the top
211 # of the sidebar.
212 #html_logo = None
213
214 # The name of an image file (within the static path) to use as favicon of the
215 # docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
216 # pixels large.
217 #html_favicon = None
218
219 # Add any paths that contain custom static files (such as style sheets) here,
220 # relative to this directory. They are copied after the builtin static files,
221 # so a file named "default.css" will overwrite the builtin "default.css".
222 html_static_path = ['_static']
223
224 # Add any extra paths that contain custom files (such as robots.txt or
225 # .htaccess) here, relative to this directory. These files are copied
226 # directly to the root of the documentation.
227 #html_extra_path = []
228
229 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
230 # using the given strftime format.
231 #html_last_updated_fmt = '%b %d, %Y'
232
233 # If true, SmartyPants will be used to convert quotes and dashes to
234 # typographically correct entities.
235 #html_use_smartypants = True
236
237 # Custom sidebar templates, maps document names to template names.
238 #html_sidebars = {}
239
240 # Additional templates that should be rendered to pages, maps page names to
241 # template names.
242 #html_additional_pages = {}
243
244 # If false, no module index is generated.
245 #html_domain_indices = True
246
247 # If false, no index is generated.
248 #html_use_index = True
249
250 # If true, the index is split into individual pages for each letter.
251 #html_split_index = False
252
253 # If true, links to the reST sources are added to the pages.
254 #html_show_sourcelink = True
255
256 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
257 #html_show_sphinx = True
258
259 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
260 #html_show_copyright = True
261
262 # If true, an OpenSearch description file will be output, and all pages will
263 # contain a <link> tag referring to it.  The value of this option must be the
264 # base URL from which the finished HTML is served.
265 #html_use_opensearch = ''
266
267 # This is the file name suffix for HTML files (e.g. ".xhtml").
268 #html_file_suffix = None
269
270 # Output file base name for HTML help builder.
271 htmlhelp_basename = 'Gromacsdoc'
272
273
274 # -- Options for LaTeX output ---------------------------------------------
275
276 latex_elements = {
277 # The paper size ('letterpaper' or 'a4paper').
278 'papersize': 'a4paper',
279
280 # The font size ('10pt', '11pt' or '12pt').
281 'pointsize': '10',
282
283 # Additional stuff for the LaTeX preamble.
284 #'preamble': '',
285 }
286
287 # Grouping the document tree into LaTeX files. List of tuples
288 # (source start file, target name, title,
289 #  author, documentclass [howto, manual, or own class]).
290 latex_documents = [
291   ('index', 'Gromacs.tex', u'Gromacs Documentation',
292    u'Gromacs development team', 'manual'),
293 ]
294
295 # The name of an image file (relative to this directory) to place at the top of
296 # the title page.
297 #latex_logo = None
298
299 # For "manual" documents, if this is true, then toplevel headings are parts,
300 # not chapters.
301 #latex_use_parts = False
302
303 # If true, show page references after internal links.
304 #latex_show_pagerefs = False
305
306 # If true, show URL addresses after external links.
307 #latex_show_urls = False
308
309 # Documents to append as an appendix to all manuals.
310 #latex_appendices = []
311
312 # If false, no module index is generated.
313 #latex_domain_indices = True
314
315
316 # -- Options for manual page output ---------------------------------------
317
318 # One entry per manual page. List of tuples
319 # (source start file, name, description, authors, manual section).
320 man_pages = [
321     ('index', 'gromacs', u'Gromacs Documentation',
322      [u'Gromacs development team'], 1)
323 ]
324
325 # If true, show URL addresses after external links.
326 #man_show_urls = False
327
328
329 # -- Options for Texinfo output -------------------------------------------
330
331 # Grouping the document tree into Texinfo files. List of tuples
332 # (source start file, target name, title, author,
333 #  dir menu entry, description, category)
334 texinfo_documents = [
335   ('index', 'Gromacs', u'Gromacs Documentation',
336    u'Gromacs development team', 'Gromacs', 'One line description of project.',
337    'Miscellaneous'),
338 ]
339
340 # Documents to append as an appendix to all manuals.
341 #texinfo_appendices = []
342
343 # If false, no module index is generated.
344 #texinfo_domain_indices = True
345
346 # How to display URL addresses: 'footnote', 'no', or 'inline'.
347 #texinfo_show_urls = 'footnote'
348
349 # If true, do not generate a @detailmenu in the "Top" node's menu.
350 #texinfo_no_detailmenu = False