| 1 |
# -*- coding: utf-8 -*- |
| 2 |
# |
| 3 |
# pymbar documentation build configuration file, created by |
| 4 |
# sphinx-quickstart on Mon May 5 20:07:25 2014. |
| 5 |
# |
| 6 |
# This file is execfile()d with the current directory set to its |
| 7 |
# containing dir. |
| 8 |
# |
| 9 |
# Note that not all possible configuration values are present in this |
| 10 |
# autogenerated file. |
| 11 |
# |
| 12 |
# All configuration values have a default; values that are commented out |
| 13 |
# serve to show the default. |
| 14 |
|
| 15 |
import sys |
| 16 |
import os |
| 17 |
from datetime import datetime |
| 18 |
import pymbar |
| 19 |
|
| 20 |
# KAB: As of July 22, 2015 it seems that it might be preferable to no longer mock out numpy and scipy. |
| 21 |
|
| 22 |
# Use mock to make our code think that numpy and scipy are available, even though they might not be available on readthedocs |
| 23 |
# import mock |
| 24 |
|
| 25 |
# MOCK_MODULES = ['numpy', 'scipy', "numpy.linalg", "scipy.special", "scipy.stats"] |
| 26 |
# for mod_name in MOCK_MODULES: |
| 27 |
# sys.modules[mod_name] = mock.Mock() |
| 28 |
|
| 29 |
# If extensions (or modules to document with autodoc) are in another directory, |
| 30 |
# add these directories to sys.path here. If the directory is relative to the |
| 31 |
# documentation root, use os.path.abspath to make it absolute, like shown here. |
| 32 |
# sys.path.insert(0, os.path.abspath('.')) |
| 33 |
|
| 34 |
# -- General configuration ------------------------------------------------ |
| 35 |
|
| 36 |
# If your documentation needs a minimal Sphinx version, state it here. |
| 37 |
# needs_sphinx = '1.0' |
| 38 |
|
| 39 |
# Add any Sphinx extension module names here, as strings. They can be |
| 40 |
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 41 |
# ones. |
| 42 |
# extensions = [ |
| 43 |
# 'sphinx.ext.autodoc', |
| 44 |
# 'sphinx.ext.mathjax', |
| 45 |
# 'numpydoc', |
| 46 |
# 'sphinx.ext.autosummary' |
| 47 |
# ] |
| 48 |
extensions = [ |
| 49 |
"sphinx.ext.autodoc", |
| 50 |
"sphinx.ext.doctest", |
| 51 |
"sphinx.ext.intersphinx", |
| 52 |
"sphinx.ext.todo", |
| 53 |
"sphinx.ext.imgmath", |
| 54 |
"sphinx.ext.ifconfig", |
| 55 |
"sphinx.ext.napoleon", |
| 56 |
"sphinx.ext.inheritance_diagram", |
| 57 |
"sphinx.ext.autosummary", |
| 58 |
"sphinx.ext.extlinks", |
| 59 |
"sphinx.ext.mathjax", |
| 60 |
"sphinxcontrib.bibtex", |
| 61 |
] |
| 62 |
|
| 63 |
autosummary_generate = True |
| 64 |
autodoc_default_flags = ["members", "inherited-members"] |
| 65 |
numpydoc_show_class_members = False |
| 66 |
|
| 67 |
# concatenate both class and __init__ docstrings when generating autodoc class |
| 68 |
# docs |
| 69 |
autoclass_content = "both" |
| 70 |
|
| 71 |
# Add any paths that contain templates here, relative to this directory. |
| 72 |
templates_path = ["_templates"] |
| 73 |
|
| 74 |
# The suffix of source filenames. |
| 75 |
source_suffix = ".rst" |
| 76 |
|
| 77 |
# The encoding of source files. |
| 78 |
# source_encoding = 'utf-8-sig' |
| 79 |
|
| 80 |
# The master toctree document. |
| 81 |
master_doc = "index" |
| 82 |
|
| 83 |
# General information about the project. |
| 84 |
project = "pymbar" |
| 85 |
copyright = f"{datetime.now().year}, {pymbar.__maintainer__}" |
| 86 |
|
| 87 |
# The version info for the project you're documenting, acts as replacement for |
| 88 |
# |version| and |release|, also used in various other places throughout the |
| 89 |
# built documents. |
| 90 |
# |
| 91 |
# The short X.Y version. |
| 92 |
# import pymbar |
| 93 |
# version = pymbar.version.short_version |
| 94 |
# The full version, including alpha/beta/rc tags. |
| 95 |
# release = version |
| 96 |
|
| 97 |
# The full version, including alpha/beta/rc tags. |
| 98 |
release = pymbar.__version__ |
| 99 |
version = release.split("+")[0] |
| 100 |
|
| 101 |
# The language for content autogenerated by Sphinx. Refer to documentation |
| 102 |
# for a list of supported languages. |
| 103 |
# |
| 104 |
# This is also used if you do content translation via gettext catalogs. |
| 105 |
# Usually you set "language" from the command line for these cases. |
| 106 |
language = 'en' |
| 107 |
|
| 108 |
# There are two options for replacing |today|: either, you set today to some |
| 109 |
# non-false value, then it is used: |
| 110 |
# today = '' |
| 111 |
# Else, today_fmt is used as the format for a strftime call. |
| 112 |
# today_fmt = '%B %d, %Y' |
| 113 |
|
| 114 |
# List of patterns, relative to source directory, that match files and |
| 115 |
# directories to ignore when looking for source files. |
| 116 |
exclude_patterns = ["_build"] |
| 117 |
|
| 118 |
# The reST default role (used for this markup: `text`) to use for all |
| 119 |
# documents. |
| 120 |
# default_role = None |
| 121 |
|
| 122 |
# If true, '()' will be appended to :func: etc. cross-reference text. |
| 123 |
# add_function_parentheses = True |
| 124 |
|
| 125 |
# If true, the current module name will be prepended to all description |
| 126 |
# unit titles (such as .. function::). |
| 127 |
# add_module_names = True |
| 128 |
|
| 129 |
# If true, sectionauthor and moduleauthor directives will be shown in the |
| 130 |
# output. They are ignored by default. |
| 131 |
# show_authors = False |
| 132 |
|
| 133 |
# The name of the Pygments (syntax highlighting) style to use. |
| 134 |
pygments_style = "sphinx" |
| 135 |
|
| 136 |
# A list of ignored prefixes for module index sorting. |
| 137 |
# modindex_common_prefix = [] |
| 138 |
|
| 139 |
# If true, keep warnings as "system message" paragraphs in the built documents. |
| 140 |
# keep_warnings = False |
| 141 |
|
| 142 |
|
| 143 |
# -- Options for HTML output ---------------------------------------------- |
| 144 |
|
| 145 |
# The theme to use for HTML and HTML Help pages. See the documentation for |
| 146 |
# a list of builtin themes. |
| 147 |
# html_theme = "default" |
| 148 |
on_rtd = os.environ.get("READTHEDOCS", None) == "True" |
| 149 |
html_theme = "sphinx_rtd_theme" |
| 150 |
if not on_rtd: # only import and set the theme if we're building docs locally |
| 151 |
import sphinx_rtd_theme |
| 152 |
|
| 153 |
html_theme = "sphinx_rtd_theme" |
| 154 |
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
| 155 |
|
| 156 |
# Theme options are theme-specific and customize the look and feel of a theme |
| 157 |
# further. For a list of options available for each theme, see the |
| 158 |
# documentation. |
| 159 |
# html_theme_options = {} |
| 160 |
|
| 161 |
# Add any paths that contain custom themes here, relative to this directory. |
| 162 |
# html_theme_path = [] |
| 163 |
|
| 164 |
# The name for this set of Sphinx documents. If None, it defaults to |
| 165 |
# "<project> v<release> documentation". |
| 166 |
# html_title = None |
| 167 |
|
| 168 |
# A shorter title for the navigation bar. Default is the same as html_title. |
| 169 |
# html_short_title = None |
| 170 |
|
| 171 |
# The name of an image file (relative to this directory) to place at the top |
| 172 |
# of the sidebar. |
| 173 |
# html_logo = None |
| 174 |
|
| 175 |
# The name of an image file (within the static path) to use as favicon of the |
| 176 |
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
| 177 |
# pixels large. |
| 178 |
# html_favicon = None |
| 179 |
|
| 180 |
# Add any paths that contain custom static files (such as style sheets) here, |
| 181 |
# relative to this directory. They are copied after the builtin static files, |
| 182 |
# so a file named "default.css" will overwrite the builtin "default.css". |
| 183 |
html_static_path = [] |
| 184 |
|
| 185 |
# Add any extra paths that contain custom files (such as robots.txt or |
| 186 |
# .htaccess) here, relative to this directory. These files are copied |
| 187 |
# directly to the root of the documentation. |
| 188 |
# html_extra_path = [] |
| 189 |
|
| 190 |
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, |
| 191 |
# using the given strftime format. |
| 192 |
# html_last_updated_fmt = '%b %d, %Y' |
| 193 |
|
| 194 |
# If true, SmartyPants will be used to convert quotes and dashes to |
| 195 |
# typographically correct entities. |
| 196 |
# html_use_smartypants = True |
| 197 |
|
| 198 |
# Custom sidebar templates, maps document names to template names. |
| 199 |
# html_sidebars = {} |
| 200 |
|
| 201 |
# Additional templates that should be rendered to pages, maps page names to |
| 202 |
# template names. |
| 203 |
# html_additional_pages = {} |
| 204 |
|
| 205 |
# If false, no module index is generated. |
| 206 |
# html_domain_indices = True |
| 207 |
|
| 208 |
# If false, no index is generated. |
| 209 |
# html_use_index = True |
| 210 |
|
| 211 |
# If true, the index is split into individual pages for each letter. |
| 212 |
# html_split_index = False |
| 213 |
|
| 214 |
# If true, links to the reST sources are added to the pages. |
| 215 |
# html_show_sourcelink = True |
| 216 |
|
| 217 |
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. |
| 218 |
# html_show_sphinx = True |
| 219 |
|
| 220 |
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. |
| 221 |
# html_show_copyright = True |
| 222 |
|
| 223 |
# If true, an OpenSearch description file will be output, and all pages will |
| 224 |
# contain a <link> tag referring to it. The value of this option must be the |
| 225 |
# base URL from which the finished HTML is served. |
| 226 |
# html_use_opensearch = '' |
| 227 |
|
| 228 |
# This is the file name suffix for HTML files (e.g. ".xhtml"). |
| 229 |
# html_file_suffix = None |
| 230 |
|
| 231 |
# Language to be used for generating the HTML full-text search index. |
| 232 |
# Sphinx supports the following languages: |
| 233 |
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja' |
| 234 |
# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr' |
| 235 |
# html_search_language = 'en' |
| 236 |
|
| 237 |
# A dictionary with options for the search language support, empty by default. |
| 238 |
# Now only 'ja' uses this config value |
| 239 |
# html_search_options = {'type': 'default'} |
| 240 |
|
| 241 |
# The name of a javascript file (relative to the configuration directory) that |
| 242 |
# implements a search results scorer. If empty, the default will be used. |
| 243 |
# html_search_scorer = 'scorer.js' |
| 244 |
|
| 245 |
# Output file base name for HTML help builder. |
| 246 |
htmlhelp_basename = "pymbardoc" |
| 247 |
|
| 248 |
# -- Options for LaTeX output --------------------------------------------- |
| 249 |
|
| 250 |
latex_elements = { |
| 251 |
# The paper size ('letterpaper' or 'a4paper'). |
| 252 |
#'papersize': 'letterpaper', |
| 253 |
# The font size ('10pt', '11pt' or '12pt'). |
| 254 |
#'pointsize': '10pt', |
| 255 |
# Additional stuff for the LaTeX preamble. |
| 256 |
#'preamble': '', |
| 257 |
# Latex figure (float) alignment |
| 258 |
#'figure_align': 'htbp', |
| 259 |
} |
| 260 |
|
| 261 |
# Grouping the document tree into LaTeX files. List of tuples |
| 262 |
# (source start file, target name, title, |
| 263 |
# author, documentclass [howto, manual, or own class]). |
| 264 |
latex_documents = [ |
| 265 |
("index", "pymbar.tex", "pymbar Documentation", pymbar.__maintainer__, "manual",), |
| 266 |
] |
| 267 |
|
| 268 |
# The name of an image file (relative to this directory) to place at the top of |
| 269 |
# the title page. |
| 270 |
# latex_logo = None |
| 271 |
|
| 272 |
# For "manual" documents, if this is true, then toplevel headings are parts, |
| 273 |
# not chapters. |
| 274 |
# latex_use_parts = False |
| 275 |
|
| 276 |
# If true, show page references after internal links. |
| 277 |
# latex_show_pagerefs = False |
| 278 |
|
| 279 |
# If true, show URL addresses after external links. |
| 280 |
# latex_show_urls = False |
| 281 |
|
| 282 |
# Documents to append as an appendix to all manuals. |
| 283 |
# latex_appendices = [] |
| 284 |
|
| 285 |
# If false, no module index is generated. |
| 286 |
# latex_domain_indices = True |
| 287 |
|
| 288 |
bibtex_bibfiles = ['references.bib'] |
| 289 |
|
| 290 |
# -- Options for manual page output --------------------------------------- |
| 291 |
|
| 292 |
# One entry per manual page. List of tuples |
| 293 |
# (source start file, name, description, authors, manual section). |
| 294 |
man_pages = [("index", "pymbar", "pymbar Documentation", [pymbar.__maintainer__], 1,)] |
| 295 |
|
| 296 |
# If true, show URL addresses after external links. |
| 297 |
# man_show_urls = False |
| 298 |
|
| 299 |
|
| 300 |
# -- Options for Texinfo output ------------------------------------------- |
| 301 |
|
| 302 |
# Grouping the document tree into Texinfo files. List of tuples |
| 303 |
# (source start file, target name, title, author, |
| 304 |
# dir menu entry, description, category) |
| 305 |
texinfo_documents = [ |
| 306 |
( |
| 307 |
"index", |
| 308 |
"pymbar", |
| 309 |
"pymbar Documentation", |
| 310 |
pymbar.__maintainer__, |
| 311 |
"pymbar", |
| 312 |
"One line description of project.", |
| 313 |
"Miscellaneous", |
| 314 |
), |
| 315 |
] |
| 316 |
|
| 317 |
# Documents to append as an appendix to all manuals. |
| 318 |
# texinfo_appendices = [] |
| 319 |
|
| 320 |
# If false, no module index is generated. |
| 321 |
# texinfo_domain_indices = True |
| 322 |
|
| 323 |
# How to display URL addresses: 'footnote', 'no', or 'inline'. |
| 324 |
# texinfo_show_urls = 'footnote' |
| 325 |
|
| 326 |
# If true, do not generate a @detailmenu in the "Top" node's menu. |
| 327 |
# texinfo_no_detailmenu = False |
| 328 |
|