|
| 1 | +# Configuration file for the Sphinx documentation builder. |
| 2 | +# |
| 3 | +# For the full list of built-in configuration values, see the documentation: |
| 4 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 5 | + |
| 6 | +# -- Project information ----------------------------------------------------- |
| 7 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
| 8 | + |
| 9 | +import os |
| 10 | +import sys |
| 11 | + |
| 12 | +sys.path.insert(0, os.path.abspath("../src")) |
| 13 | + |
| 14 | +project = "ibex_bluesky_core" |
| 15 | +copyright = "" |
| 16 | +author = "ISIS Experiment Controls" |
| 17 | +release = "0.1" |
| 18 | + |
| 19 | + |
| 20 | +# -- General configuration --------------------------------------------------- |
| 21 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
| 22 | + |
| 23 | +extensions = [ |
| 24 | + "myst_parser", |
| 25 | + "sphinx.ext.autodoc", |
| 26 | + # and making summary tables at the top of API docs |
| 27 | + "sphinx.ext.autosummary", |
| 28 | + # This can parse google style docstrings |
| 29 | + "sphinx.ext.napoleon", |
| 30 | + # For linking to external sphinx documentation |
| 31 | + "sphinx.ext.intersphinx", |
| 32 | + # Add links to source code in API docs |
| 33 | + "sphinx.ext.viewcode", |
| 34 | +] |
| 35 | +napoleon_google_docstring = True |
| 36 | +napoleon_numpy_docstring = False |
| 37 | + |
| 38 | +templates_path = ["_templates"] |
| 39 | +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
| 40 | + |
| 41 | + |
| 42 | +# -- Options for HTML output ------------------------------------------------- |
| 43 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output |
| 44 | + |
| 45 | +html_theme = "sphinx_rtd_theme" |
| 46 | +html_static_path = ["_static"] |
| 47 | + |
| 48 | +autoclass_content = "both" |
0 commit comments