#1# yt documentation build configuration file, created by2# sphinx-quickstart on Tue Jan 11 09:46:53 2011.3#4# This file is execfile()d with the current directory set to its containing dir.5#6# Note that not all possible configuration values are present in this7# autogenerated file.8#9# All configuration values have a default; values that are commented out10# serve to show the default.1112import glob13import os14import sys1516import sphinx_bootstrap_theme1718on_rtd = os.environ.get("READTHEDOCS", None) == "True"1920# 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 the22# documentation root, use os.path.abspath to make it absolute, like shown here.23sys.path.insert(0, os.path.abspath("../extensions/"))2425# -- General configuration -----------------------------------------------------2627# If your documentation needs a minimal Sphinx version, state it here.28# needs_sphinx = '1.0'2930# Add any Sphinx extension module names here, as strings. They can be extensions31# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.32extensions = [33"sphinx.ext.autodoc",34"sphinx.ext.intersphinx",35"sphinx.ext.mathjax",36"sphinx.ext.viewcode",37"sphinx.ext.napoleon",38"yt_cookbook",39"yt_colormaps",40"config_help",41"yt_showfields",42"nbsphinx",43]4445if not on_rtd:46extensions.append("sphinx.ext.autosummary")47extensions.append("pythonscript_sphinxext")4849# Add any paths that contain templates here, relative to this directory.50templates_path = ["_templates"]5152# The suffix of source filenames.53source_suffix = ".rst"5455# The encoding of source files.56# source_encoding = 'utf-8-sig'5758# The master toctree document.59master_doc = "index"6061# General information about the project.62project = "The yt Project"63copyright = "2013-2021, the yt Project"6465# The version info for the project you're documenting, acts as replacement for66# |version| and |release|, also used in various other places throughout the67# built documents.68#69# The short X.Y version.70version = "4.5"71# The full version, including alpha/beta/rc tags.72release = "4.5-dev"7374# The language for content autogenerated by Sphinx. Refer to documentation75# for a list of supported languages.76# language = None7778# There are two options for replacing |today|: either, you set today to some79# non-false value, then it is used:80# today = ''81# Else, today_fmt is used as the format for a strftime call.82# today_fmt = '%B %d, %Y'8384# List of patterns, relative to source directory, that match files and85# directories to ignore when looking for source files.86exclude_patterns = []8788# The reST default role (used for this markup: `text`) to use for all documents.89# default_role = None9091# If true, '()' will be appended to :func: etc. cross-reference text.92# add_function_parentheses = True9394# If true, the current module name will be prepended to all description95# unit titles (such as .. function::).96# add_module_names = True9798# If true, sectionauthor and moduleauthor directives will be shown in the99# output. They are ignored by default.100show_authors = False101102# The name of the Pygments (syntax highlighting) style to use.103pygments_style = "sphinx"104105# A list of ignored prefixes for module index sorting.106# modindex_common_prefix = []107108109# -- Options for HTML output ---------------------------------------------------110111# The theme to use for HTML and HTML Help pages. See the documentation for112# a list of builtin themes.113html_theme = "bootstrap"114html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()115116# Theme options are theme-specific and customize the look and feel of a theme117# further. For a list of options available for each theme, see the118# documentation.119html_theme_options = dict(120bootstrap_version="3",121bootswatch_theme="readable",122navbar_links=[123("", ""), # see https://github.com/yt-project/yt/pull/3423124("How to get help", "help/index"),125("Quickstart notebooks", "quickstart/index"),126("Cookbook", "cookbook/index"),127],128navbar_sidebarrel=False,129globaltoc_depth=2,130)131132# Add any paths that contain custom themes here, relative to this directory.133# html_theme_path = []134135# The name for this set of Sphinx documents. If None, it defaults to136# "<project> v<release> documentation".137# html_title = None138139# A shorter title for the navigation bar. Default is the same as html_title.140# html_short_title = None141142# The name of an image file (relative to this directory) to place at the top143# of the sidebar.144html_logo = "_static/yt_icon.png"145146# The name of an image file (within the static path) to use as favicon of the147# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32148# pixels large.149# html_favicon = None150151# Add any paths that contain custom static files (such as style sheets) here,152# relative to this directory. They are copied after the builtin static files,153# so a file named "default.css" will overwrite the builtin "default.css".154html_static_path = ["_static", "analyzing/_static"]155156# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,157# using the given strftime format.158# html_last_updated_fmt = '%b %d, %Y'159160# If true, SmartyPants will be used to convert quotes and dashes to161# typographically correct entities.162# html_use_smartypants = True163164# Custom sidebar templates, maps document names to template names.165# html_sidebars = {}166167# Additional templates that should be rendered to pages, maps page names to168# template names.169# html_additional_pages = {}170171# If false, no module index is generated.172html_domain_indices = False173174# If false, no index is generated.175html_use_index = True176177# If true, the index is split into individual pages for each letter.178# html_split_index = False179180# If true, links to the reST sources are added to the pages.181html_show_sourcelink = False182183# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.184# html_show_sphinx = True185186# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.187# html_show_copyright = True188189# If true, an OpenSearch description file will be output, and all pages will190# contain a <link> tag referring to it. The value of this option must be the191# base URL from which the finished HTML is served.192# html_use_opensearch = ''193194# This is the file name suffix for HTML files (e.g. ".xhtml").195# html_file_suffix = None196197# Output file base name for HTML help builder.198htmlhelp_basename = "ytdoc"199200201# -- Options for LaTeX output --------------------------------------------------202203# The paper size ('letter' or 'a4').204# latex_paper_size = 'letter'205206# The font size ('10pt', '11pt' or '12pt').207# latex_font_size = '10pt'208209# Grouping the document tree into LaTeX files. List of tuples210# (source start file, target name, title, author, documentclass [howto/manual]).211latex_documents = [212("index", "yt.tex", "yt Documentation", "The yt Project", "manual"),213]214215# The name of an image file (relative to this directory) to place at the top of216# the title page.217# latex_logo = None218219# For "manual" documents, if this is true, then toplevel headings are parts,220# not chapters.221# latex_use_parts = False222223# If true, show page references after internal links.224# latex_show_pagerefs = False225226# If true, show URL addresses after external links.227# latex_show_urls = False228229# Documents to append as an appendix to all manuals.230# latex_appendices = []231232# If false, no module index is generated.233# latex_domain_indices = True234235236# -- Options for manual page output --------------------------------------------237238# One entry per manual page. List of tuples239# (source start file, name, description, authors, manual section).240man_pages = [("index", "yt", "yt Documentation", ["The yt Project"], 1)]241242nbsphinx_allow_errors = True243244# Example configuration for intersphinx: refer to the Python standard library.245intersphinx_mapping = {246"python": ("https://docs.python.org/3/", None),247"ipython": ("https://ipython.readthedocs.io/en/stable/", None),248"numpy": ("https://numpy.org/doc/stable/", None),249"matplotlib": ("https://matplotlib.org/stable/", None),250"astropy": ("https://docs.astropy.org/en/stable", None),251"pandas": ("https://pandas.pydata.org/pandas-docs/stable", None),252"trident": ("https://trident.readthedocs.io/en/latest/", None),253"yt_astro_analysis": ("https://yt-astro-analysis.readthedocs.io/en/latest/", None),254"yt_attic": ("https://yt-attic.readthedocs.io/en/latest/", None),255"pytest": ("https://docs.pytest.org/en/stable", None),256}257258if not on_rtd:259autosummary_generate = glob.glob("reference/api/api.rst")260261262# as of Sphinx 3.1.2 this is the supported way to link custom style sheets263def setup(app):264app.add_css_file("custom.css")265266267