|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | +# |
| 3 | +# complexity documentation build configuration file, created by |
| 4 | +# sphinx-quickstart on Tue Jul 9 22:26:36 2013. |
| 5 | +# |
| 6 | +# This file is execfile()d with the current directory set to its containing dir. |
| 7 | +# |
| 8 | +# Note that not all possible configuration values are present in this |
| 9 | +# autogenerated file. |
| 10 | +# |
| 11 | +# All configuration values have a default; values that are commented out |
| 12 | +# serve to show the default. |
| 13 | + |
| 14 | +import datetime |
| 15 | +import os |
| 16 | +import sys |
| 17 | + |
| 18 | +import cf_xarray # noqa |
| 19 | + |
| 20 | +# If extensions (or modules to document with autodoc) are in another directory, |
| 21 | +# add these directories to sys.path here. If the directory is relative to the |
| 22 | +# documentation root, use os.path.abspath to make it absolute, like shown here. |
| 23 | +# sys.path.insert(0, os.path.abspath('.')) |
| 24 | + |
| 25 | +cwd = os.getcwd() |
| 26 | +parent = os.path.dirname(cwd) |
| 27 | +sys.path.insert(0, parent) |
| 28 | + |
| 29 | + |
| 30 | +# -- General configuration ----------------------------------------------------- |
| 31 | + |
| 32 | +# If your documentation needs a minimal Sphinx version, state it here. |
| 33 | +# needs_sphinx = '1.0' |
| 34 | + |
| 35 | +# Add any Sphinx extension module names here, as strings. They can be extensions |
| 36 | +# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
| 37 | +extensions = [ |
| 38 | + "sphinx.ext.autodoc", |
| 39 | + "sphinx.ext.viewcode", |
| 40 | + "sphinx.ext.autosummary", |
| 41 | + "sphinx.ext.doctest", |
| 42 | + "sphinx.ext.intersphinx", |
| 43 | + "sphinx.ext.extlinks", |
| 44 | + "numpydoc", |
| 45 | + "IPython.sphinxext.ipython_console_highlighting", |
| 46 | + "IPython.sphinxext.ipython_directive", |
| 47 | + "nbsphinx", |
| 48 | +] |
| 49 | + |
| 50 | +extlinks = { |
| 51 | + "issue": ("https://github.com/xarray-contrib/cf-xarray/issues/%s", "GH#"), |
| 52 | + "pr": ("https://github.com/xarray-contrib/cf-xarray/pull/%s", "GH#"), |
| 53 | +} |
| 54 | + |
| 55 | +# Add any paths that contain templates here, relative to this directory. |
| 56 | +templates_path = ["_templates"] |
| 57 | + |
| 58 | +# The suffix of source filenames. |
| 59 | +source_suffix = ".rst" |
| 60 | + |
| 61 | +# Enable notebook execution |
| 62 | +# https://nbsphinx.readthedocs.io/en/0.4.2/never-execute.html |
| 63 | +# nbsphinx_execute = 'auto' |
| 64 | +# Allow errors in all notebooks by |
| 65 | +nbsphinx_allow_errors = True |
| 66 | + |
| 67 | +# Disable cell timeout |
| 68 | +nbsphinx_timeout = -1 |
| 69 | + |
| 70 | + |
| 71 | +# The encoding of source files. |
| 72 | +# source_encoding = 'utf-8-sig' |
| 73 | + |
| 74 | +# The master toctree document. |
| 75 | +master_doc = "index" |
| 76 | + |
| 77 | +# General information about the project. |
| 78 | +project = "cf_xarray" |
| 79 | +current_year = datetime.datetime.now().year |
| 80 | +copyright = f"2020-{current_year}, cf_xarray Developers" |
| 81 | +author = "cf_xarray Developers" |
| 82 | +# The version info for the project you're documenting, acts as replacement for |
| 83 | +# |version| and |release|, also used in various other places throughout the |
| 84 | +# built documents. |
| 85 | +# |
| 86 | +# The short X.Y version. |
| 87 | +# version = cf_xarray.__version__.split("+")[0] |
| 88 | +# The full version, including alpha/beta/rc tags. |
| 89 | +# release = cf_xarray.__version__ |
| 90 | + |
| 91 | +# The language for content autogenerated by Sphinx. Refer to documentation |
| 92 | +# for a list of supported languages. |
| 93 | +# language = None |
| 94 | + |
| 95 | +# There are two options for replacing |today|: either, you set today to some |
| 96 | +# non-false value, then it is used: |
| 97 | +# today = '' |
| 98 | +# Else, today_fmt is used as the format for a strftime call. |
| 99 | +# today_fmt = '%B %d, %Y' |
| 100 | + |
| 101 | +# List of patterns, relative to source directory, that match files and |
| 102 | +# directories to ignore when looking for source files. |
| 103 | +exclude_patterns = ["_build"] |
| 104 | + |
| 105 | +# The reST default role (used for this markup: `text`) to use for all documents. |
| 106 | +# default_role = None |
| 107 | + |
| 108 | +# If true, '()' will be appended to :func: etc. cross-reference text. |
| 109 | +# add_function_parentheses = True |
| 110 | + |
| 111 | +# If true, the current module name will be prepended to all description |
| 112 | +# unit titles (such as .. function::). |
| 113 | +# add_module_names = True |
| 114 | + |
| 115 | +# If true, sectionauthor and moduleauthor directives will be shown in the |
| 116 | +# output. They are ignored by default. |
| 117 | +# show_authors = False |
| 118 | + |
| 119 | +# The name of the Pygments (syntax highlighting) style to use. |
| 120 | +pygments_style = "sphinx" |
| 121 | + |
| 122 | +# A list of ignored prefixes for module index sorting. |
| 123 | +# modindex_common_prefix = [] |
| 124 | + |
| 125 | +# If true, keep warnings as "system message" paragraphs in the built documents. |
| 126 | +# keep_warnings = False |
| 127 | + |
| 128 | + |
| 129 | +# -- Options for HTML output --------------------------------------------------- |
| 130 | + |
| 131 | +# The theme to use for HTML and HTML Help pages. See the documentation for |
| 132 | +# a list of builtin themes. |
| 133 | +html_theme = "sphinx_book_theme" |
| 134 | + |
| 135 | +# Theme options are theme-specific and customize the look and feel of a theme |
| 136 | +# further. For a list of options available for each theme, see the |
| 137 | +# documentation. |
| 138 | +html_theme_options = { |
| 139 | + "github_url": "https://github.com/xarray-contrib/cf-xarray", |
| 140 | + "use_edit_page_button": True, |
| 141 | +} |
| 142 | + |
| 143 | +html_context = { |
| 144 | + "github_user": "xarray-contrib", |
| 145 | + "github_repo": "cf-xarray", |
| 146 | + "github_version": "master", |
| 147 | + "doc_path": "doc", |
| 148 | +} |
| 149 | + |
| 150 | +# Add any paths that contain custom themes here, relative to this directory. |
| 151 | +# html_theme_path = [] |
| 152 | + |
| 153 | +# The name for this set of Sphinx documents. If None, it defaults to |
| 154 | +# "<project> v<release> documentation". |
| 155 | +# html_title = None |
| 156 | + |
| 157 | +# A shorter title for the navigation bar. Default is the same as html_title. |
| 158 | +# html_short_title = None |
| 159 | + |
| 160 | +# The name of an image file (relative to this directory) to place at the top |
| 161 | +# of the sidebar. |
| 162 | +# html_logo = None |
| 163 | + |
| 164 | +# The name of an image file (within the static path) to use as favicon of the |
| 165 | +# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
| 166 | +# pixels large. |
| 167 | +# html_favicon = None |
| 168 | + |
| 169 | +# Add any paths that contain custom static files (such as style sheets) here, |
| 170 | +# relative to this directory. They are copied after the builtin static files, |
| 171 | +# so a file named "default.css" will overwrite the builtin "default.css". |
| 172 | +html_static_path = ["_static"] |
| 173 | + |
| 174 | +# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, |
| 175 | +# using the given strftime format. |
| 176 | +# html_last_updated_fmt = '%b %d, %Y' |
| 177 | + |
| 178 | +# If true, SmartyPants will be used to convert quotes and dashes to |
| 179 | +# typographically correct entities. |
| 180 | +# html_use_smartypants = True |
| 181 | + |
| 182 | +# Custom sidebar templates, maps document names to template names. |
| 183 | +# html_sidebars = {} |
| 184 | + |
| 185 | +# Additional templates that should be rendered to pages, maps page names to |
| 186 | +# template names. |
| 187 | +# html_additional_pages = {} |
| 188 | + |
| 189 | +# If false, no module index is generated. |
| 190 | +# html_domain_indices = True |
| 191 | + |
| 192 | +# If false, no index is generated. |
| 193 | +# html_use_index = True |
| 194 | + |
| 195 | +# If true, the index is split into individual pages for each letter. |
| 196 | +# html_split_index = False |
| 197 | + |
| 198 | +# If true, links to the reST sources are added to the pages. |
| 199 | +# html_show_sourcelink = True |
| 200 | + |
| 201 | +# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. |
| 202 | +# html_show_sphinx = True |
| 203 | + |
| 204 | +# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. |
| 205 | +# html_show_copyright = True |
| 206 | + |
| 207 | +# If true, an OpenSearch description file will be output, and all pages will |
| 208 | +# contain a <link> tag referring to it. The value of this option must be the |
| 209 | +# base URL from which the finished HTML is served. |
| 210 | +# html_use_opensearch = '' |
| 211 | + |
| 212 | +# This is the file name suffix for HTML files (e.g. ".xhtml"). |
| 213 | +# html_file_suffix = None |
| 214 | + |
| 215 | +# Output file base name for HTML help builder. |
| 216 | +htmlhelp_basename = "cf_xarraydoc" |
| 217 | + |
| 218 | + |
| 219 | +# -- Options for LaTeX output -------------------------------------------------- |
| 220 | + |
| 221 | +# latex_elements = { |
| 222 | +# The paper size ('letterpaper' or 'a4paper'). |
| 223 | +# 'papersize': 'letterpaper', |
| 224 | + |
| 225 | +# The font size ('10pt', '11pt' or '12pt'). |
| 226 | +# 'pointsize': '10pt', |
| 227 | + |
| 228 | +# Additional stuff for the LaTeX preamble. |
| 229 | +# 'preamble': '', |
| 230 | +# } |
| 231 | + |
| 232 | +# Grouping the document tree into LaTeX files. List of tuples |
| 233 | +# (source start file, target name, title, author, documentclass [howto/manual]). |
| 234 | +# latex_documents = [ |
| 235 | +# ('index', 'cf_xarray.tex', u'cf_xarray Documentation', |
| 236 | +# u'Deepak Cherian', 'manual'), |
| 237 | +# ] |
| 238 | + |
| 239 | +# The name of an image file (relative to this directory) to place at the top of |
| 240 | +# the title page. |
| 241 | +# latex_logo = None |
| 242 | + |
| 243 | +# For "manual" documents, if this is true, then toplevel headings are parts, |
| 244 | +# not chapters. |
| 245 | +# latex_use_parts = False |
| 246 | + |
| 247 | +# If true, show page references after internal links. |
| 248 | +# latex_show_pagerefs = False |
| 249 | + |
| 250 | +# If true, show URL addresses after external links. |
| 251 | +# latex_show_urls = False |
| 252 | + |
| 253 | +# Documents to append as an appendix to all manuals. |
| 254 | +# latex_appendices = [] |
| 255 | + |
| 256 | +# If false, no module index is generated. |
| 257 | +# latex_domain_indices = True |
| 258 | + |
| 259 | + |
| 260 | +# -- Options for manual page output -------------------------------------------- |
| 261 | + |
| 262 | +# One entry per manual page. List of tuples |
| 263 | +# (source start file, name, description, authors, manual section). |
| 264 | +man_pages = [("index", "cf_xarray", "cf_xarray Documentation", [author], 1)] |
| 265 | + |
| 266 | +# If true, show URL addresses after external links. |
| 267 | +# man_show_urls = False |
| 268 | + |
| 269 | + |
| 270 | +# -- Options for Texinfo output ------------------------------------------------ |
| 271 | + |
| 272 | +# Grouping the document tree into Texinfo files. List of tuples |
| 273 | +# (source start file, target name, title, author, |
| 274 | +# dir menu entry, description, category) |
| 275 | +# texinfo_documents = [ |
| 276 | +# ('index', 'cf_xarray', u'cf_xarray Documentation', |
| 277 | +# author, 'cf_xarray', 'One line description of project.', |
| 278 | +# 'Miscellaneous'), |
| 279 | +# ] |
| 280 | + |
| 281 | +# Documents to append as an appendix to all manuals. |
| 282 | +# texinfo_appendices = [] |
| 283 | + |
| 284 | +# If false, no module index is generated. |
| 285 | +# texinfo_domain_indices = True |
| 286 | + |
| 287 | +# How to display URL addresses: 'footnote', 'no', or 'inline'. |
| 288 | +# texinfo_show_urls = 'footnote' |
| 289 | + |
| 290 | +# If true, do not generate a @detailmenu in the "Top" node's menu. |
| 291 | +# texinfo_no_detailmenu = False |
| 292 | + |
| 293 | +intersphinx_mapping = { |
| 294 | + "python": ("https://docs.python.org/3/", None), |
| 295 | + "xarray": ("http://xarray.pydata.org/en/stable/", None), |
| 296 | +} |
0 commit comments