[9e8054]: / docs / source / conf.py

Download this file

114 lines (78 with data), 3.6 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
import sys, os
sys.path.insert(0, os.path.abspath('../../'))
# -- General configuration ------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
#
# needs_sphinx = '1.0'
master_doc = "index"
source_suffix = ['.rst', '.md']
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", ".ipynb_checkpoints"]
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
project = 'aggmap'
copyright = '2022, Shen Wan Xiang'
author = 'Shen Wan Xiang'
release = '1.1.8'
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.intersphinx",
"sphinx.ext.mathjax",
"sphinx.ext.viewcode",
'sphinx.ext.napoleon',
'nbsphinx',
#"sphinx_gallery.gen_gallery",
# 'bokeh.sphinxext.bokeh_plot',
]
#extensions = ['sphinx.ext.autodoc', 'sphinx.ext.napoleon']
# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
"python": ("https://docs.python.org/{.major}".format(sys.version_info), None),
"numpy": ("https://docs.scipy.org/doc/numpy/", None),
"scipy": ("https://docs.scipy.org/doc/scipy/reference", None),
"matplotlib": ("https://matplotlib.org/", None),
"pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None),
"sklearn": ("http://scikit-learn.org/stable/", None),
"bokeh": ("http://bokeh.pydata.org/en/latest/", None),
}
sphinx_gallery_conf = {
# path to your examples scripts
"examples_dirs": "../examples",
"ignore_pattern": r"(.*torus.*|inverse_transform.*)\.py",
# path where to save gallery generated examples
"gallery_dirs": "auto_examples",
"plot_gallery": False, # Turn off running the examples for now
"reference_url": {
"python": "https://docs.python.org/{.major}".format(sys.version_info),
"numpy": "https://docs.scipy.org/doc/numpy/",
"scipy": "https://docs.scipy.org/doc/scipy/reference",
"matplotlib": "https://matplotlib.org/",
"pandas": "https://pandas.pydata.org/pandas-docs/stable/",
"sklearn": "http://scikit-learn.org/stable/",
"bokeh": "http://bokeh.pydata.org/en/latest/",
},
}
templates_path = ['_templates']
exclude_patterns = []
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = "sphinx_rtd_theme"
#html_theme = 'alabaster'
html_theme_options = {"navigation_depth": -1,
"collapse_navigation": False,
'globaltoc_collapse': False,
'globaltoc_maxdepth': -1,
"logo_only": True,}
html_logo = "../images/logo.png"
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']