|
| 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 = 'web-monitoring-diff' |
| 21 | +copyright = '2017-2020, Environmental Data & Governance Initiative' |
| 22 | +author = 'Environmental Data & Governance Initiative' |
| 23 | + |
| 24 | +# The version info for the project you're documenting, acts as replacement for |
| 25 | +# |version| and |release|, also used in various other places throughout the |
| 26 | +# built documents. |
| 27 | +# |
| 28 | +import web_monitoring_diff |
| 29 | +# The short X.Y version. |
| 30 | +version = web_monitoring_diff.__version__ |
| 31 | +# The full version, including alpha/beta/rc tags. |
| 32 | +release = web_monitoring_diff.__version__ |
| 33 | + |
| 34 | + |
| 35 | +# -- General configuration --------------------------------------------------- |
| 36 | + |
| 37 | +# Add any Sphinx extension module names here, as strings. They can be |
| 38 | +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 39 | +# ones. |
| 40 | +extensions = [ |
| 41 | + 'sphinx.ext.autodoc', |
| 42 | + 'sphinx.ext.autosummary', |
| 43 | + 'sphinx.ext.githubpages', |
| 44 | + 'sphinx.ext.intersphinx', |
| 45 | + 'sphinx.ext.mathjax', |
| 46 | + 'sphinx.ext.viewcode', |
| 47 | + 'IPython.sphinxext.ipython_directive', |
| 48 | + 'IPython.sphinxext.ipython_console_highlighting', |
| 49 | + 'numpydoc', |
| 50 | + 'sphinx_copybutton', |
| 51 | +] |
| 52 | + |
| 53 | +# Generate the API documentation when building |
| 54 | +autosummary_generate = True |
| 55 | +numpydoc_show_class_members = False |
| 56 | +autodoc_mock_imports = ['html5_parser', 'pycurl', 'sentry'] |
| 57 | + |
| 58 | +# Add any paths that contain templates here, relative to this directory. |
| 59 | +templates_path = ['_templates'] |
| 60 | + |
| 61 | +# List of patterns, relative to source directory, that match files and |
| 62 | +# directories to ignore when looking for source files. |
| 63 | +# This pattern also affects html_static_path and html_extra_path. |
| 64 | +exclude_patterns = [] |
| 65 | + |
| 66 | +# Example configuration for intersphinx: refer to the Python standard library. |
| 67 | +intersphinx_mapping = { |
| 68 | + 'python': ('https://docs.python.org/3/', None), |
| 69 | + 'numpy': ('https://numpy.org/doc/stable/', None), |
| 70 | + 'scipy': ('https://docs.scipy.org/doc/scipy/reference/', None), |
| 71 | + 'pandas': ('https://pandas.pydata.org/pandas-docs/stable', None), |
| 72 | + 'matplotlib': ('https://matplotlib.org', None), |
| 73 | +} |
| 74 | + |
| 75 | + |
| 76 | +# -- Options for HTML output ------------------------------------------------- |
| 77 | + |
| 78 | +# The theme to use for HTML and HTML Help pages. See the documentation for |
| 79 | +# a list of builtin themes. |
| 80 | +# |
| 81 | +html_theme = 'sphinx_rtd_theme' |
| 82 | +# import sphinx_rtd_theme |
| 83 | +# html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
| 84 | + |
| 85 | +# Add any paths that contain custom static files (such as style sheets) here, |
| 86 | +# relative to this directory. They are copied after the builtin static files, |
| 87 | +# so a file named "default.css" will overwrite the builtin "default.css". |
| 88 | +html_static_path = ['_static'] |
0 commit comments