|
| 1 | +# Configuration file for the Sphinx documentation builder. |
| 2 | +# |
| 3 | +# This file only contains a selection of the most common options. For a full |
| 4 | +# list see the documentation: |
| 5 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 6 | + |
| 7 | +# -- Path setup -------------------------------------------------------------- |
| 8 | + |
| 9 | +# If extensions (or modules to document with autodoc) are in another directory, |
| 10 | +# add these directories to sys.path here. If the directory is relative to the |
| 11 | +# documentation root, use os.path.abspath to make it absolute, like shown here. |
| 12 | +# |
| 13 | +# import os |
| 14 | +# import sys |
| 15 | +# sys.path.insert(0, os.path.abspath('.')) |
| 16 | + |
| 17 | + |
| 18 | +# -- Project information ----------------------------------------------------- |
| 19 | + |
| 20 | +project = "PyMC3" |
| 21 | +copyright = "2021, PyMC Community" |
| 22 | +author = "PyMC Community" |
| 23 | + |
| 24 | + |
| 25 | +# -- General configuration --------------------------------------------------- |
| 26 | + |
| 27 | +# Add any Sphinx extension module names here, as strings. They can be |
| 28 | +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 29 | +# ones. |
| 30 | +extensions = [ |
| 31 | + "sphinx.ext.intersphinx", |
| 32 | + "sphinx.ext.mathjax", |
| 33 | + "myst_nb", |
| 34 | + "ablog", |
| 35 | + "sphinx_design", |
| 36 | + "sphinxext.opengraph", |
| 37 | + "sphinx_copybutton", |
| 38 | + "sphinxcontrib.bibtex", |
| 39 | +] |
| 40 | + |
| 41 | +# List of patterns, relative to source directory, that match files and |
| 42 | +# directories to ignore when looking for source files. |
| 43 | +# This pattern also affects html_static_path and html_extra_path. |
| 44 | +exclude_patterns = [ |
| 45 | + "_build", |
| 46 | + "Thumbs.db", |
| 47 | + ".DS_Store", |
| 48 | + "*import_posts*", |
| 49 | + "**/.ipynb_checkpoints/*", |
| 50 | +] |
| 51 | + |
| 52 | + |
| 53 | +# -- Options for HTML output ------------------------------------------------- |
| 54 | + |
| 55 | +# The theme to use for HTML and HTML Help pages. See the documentation for |
| 56 | +# a list of builtin themes. |
| 57 | + |
| 58 | +# theme options |
| 59 | +html_theme = "pydata_sphinx_theme" |
| 60 | +html_theme_options = { |
| 61 | + "icon_links": [ |
| 62 | + { |
| 63 | + "name": "GitHub", |
| 64 | + "url": "https://github.com/pymc-devs/pymc-examples", |
| 65 | + "icon": "fab fa-github-square", |
| 66 | + }, |
| 67 | + { |
| 68 | + "name": "Twitter", |
| 69 | + "url": "https://twitter.com/pymc-devs", |
| 70 | + "icon": "fab fa-twitter-square", |
| 71 | + }, |
| 72 | + { |
| 73 | + "name": "Discourse", |
| 74 | + "url": "https://discourse.pymc.io", |
| 75 | + "icon": "fab fa-discourse", |
| 76 | + }, |
| 77 | + ], |
| 78 | + "search_bar_text": "Search...", |
| 79 | + "navbar_end": ["search-field.html", "navbar-icon-links.html"], |
| 80 | + "external_links": [ |
| 81 | + {"name": "Learning", "url": "https://pymc3.readthedocs.io/en/latest/learn.html"}, |
| 82 | + {"name": "API", "url": "https://pymc3.readthedocs.io/en/latest/api.html"} |
| 83 | + ] |
| 84 | +} |
| 85 | + |
| 86 | +html_favicon = "../_static/PyMC3.ico" |
| 87 | + |
| 88 | +# Add any paths that contain custom static files (such as style sheets) here, |
| 89 | +# relative to this directory. They are copied after the builtin static files, |
| 90 | +# so a file named "default.css" will overwrite the builtin "default.css". |
| 91 | +html_static_path = ["../_static"] |
| 92 | +html_sidebars = { |
| 93 | + "**": ["sidebar-nav-bs.html", "tagcloud.html", "categories.html"], |
| 94 | +} |
| 95 | + |
| 96 | +# ablog config |
| 97 | +# blog_baseurl = "https://predictablynoisy.com" |
| 98 | +blog_title = "PyMC Examples" |
| 99 | +blog_path = "blog" |
| 100 | +# fontawesome_included = True |
| 101 | +# post_redirect_refresh = 1 |
| 102 | +# post_auto_image = 1 |
| 103 | +# post_auto_excerpt = 2 |
| 104 | + |
| 105 | +# MyST config |
| 106 | +myst_enable_extensions = [ |
| 107 | + "colon_fence", |
| 108 | + "deflist", |
| 109 | + "dollarmath", |
| 110 | + "amsmath" |
| 111 | +] |
| 112 | + |
| 113 | +# bibtex config |
| 114 | +bibtex_bibfiles = ['references.bib'] |
| 115 | +bibtex_default_style = 'unsrt' |
| 116 | +bibtex_reference_style = "author_year" |
| 117 | + |
| 118 | +# OpenGraph config |
| 119 | +# ogp_site_url = "https://predictablynoisy.com" |
| 120 | +# ogp_image = "https://predictablynoisy.com/_static/profile-bw.png" |
| 121 | + |
| 122 | +# Temporarily stored as off until we fix it |
| 123 | +jupyter_execute_notebooks = "off" |
| 124 | + |
| 125 | +# intersphinx mappings |
| 126 | +intersphinx_mapping = { |
| 127 | + "aesara": ("https://aesara.readthedocs.io/en/latest/", None), |
| 128 | + "arviz": ("https://arviz-devs.github.io/arviz/", None), |
| 129 | + # "mpl": ("https://matplotlib.org/", None), |
| 130 | + # "numpy": ("https://numpy.org/doc/stable/", None), |
| 131 | + # "pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None), |
| 132 | + "pymc3": ("https://docs.pymc.io/", None), |
| 133 | + # "scipy": ("https://docs.scipy.org/doc/scipy/reference/", None), |
| 134 | + # "xarray": ("http://xarray.pydata.org/en/stable/", None), |
| 135 | +} |
0 commit comments