| 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 |
sys.path.insert(0, os.path.abspath('_ext/')) |
| 17 |
|
| 18 |
import sphinx_rtd_theme |
| 19 |
|
| 20 |
|
| 21 |
# -- Project information ----------------------------------------------------- |
| 22 |
|
| 23 |
project = 'arpys' |
| 24 |
copyright = '2020, Kevin Kramer' |
| 25 |
author = 'Kevin Kramer' |
| 26 |
|
| 27 |
# The name of the main .rst file to work with |
| 28 |
master_doc = 'index' |
| 29 |
|
| 30 |
# -- General configuration --------------------------------------------------- |
| 31 |
|
| 32 |
# Add any Sphinx extension module names here, as strings. They can be |
| 33 |
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 34 |
# ones. |
| 35 |
extensions = [ |
| 36 |
'sphinx.ext.autodoc', |
| 37 |
'sphinx.ext.viewcode', |
| 38 |
'sphinx.ext.intersphinx', |
| 39 |
'sphinx_rtd_theme', |
| 40 |
'signals' |
| 41 |
] |
| 42 |
|
| 43 |
# Add any paths that contain templates here, relative to this directory. |
| 44 |
templates_path = ['_templates'] |
| 45 |
|
| 46 |
# List of patterns, relative to source directory, that match files and |
| 47 |
# directories to ignore when looking for source files. |
| 48 |
# This pattern also affects html_static_path and html_extra_path. |
| 49 |
exclude_patterns = [] |
| 50 |
|
| 51 |
|
| 52 |
# -- Options for HTML output ------------------------------------------------- |
| 53 |
|
| 54 |
# The theme to use for HTML and HTML Help pages. See the documentation for |
| 55 |
# a list of builtin themes. |
| 56 |
# |
| 57 |
html_theme = 'sphinx_rtd_theme' |
| 58 |
|
| 59 |
# Add any paths that contain custom static files (such as style sheets) here, |
| 60 |
# relative to this directory. They are copied after the builtin static files, |
| 61 |
# so a file named "default.css" will overwrite the builtin "default.css". |
| 62 |
html_static_path = ['_static'] |
| 63 |
|
| 64 |
# Load cutsom stylesheet |
| 65 |
def setup(app) : |
| 66 |
app.add_css_file('custom.css') |
| 67 |
|
| 68 |
# Autodoc config |
| 69 |
autodoc_member_order = 'bysource' |
| 70 |
|
| 71 |
# Intersphinx config |
| 72 |
intersphinx_mapping = { |
| 73 |
'matplotlib': |
| 74 |
('https://matplotlib.org', None), |
| 75 |
'scipy': |
| 76 |
('https://docs.scipy.org/doc/scipy/reference', None), |
| 77 |
'pyqtgraph': |
| 78 |
('https://pyqtgraph.readthedocs.io/en/latest/', None), |
| 79 |
'python': |
| 80 |
('https://docs.python.org/3', None) |
| 81 |
} |
| 82 |
|