| 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 |
import sphinx_rtd_theme |
| 17 |
|
| 18 |
# -- Project information ----------------------------------------------------- |
| 19 |
|
| 20 |
project = 'splash' |
| 21 |
copyright = '2004-2026 Daniel Price and contributors' |
| 22 |
author = 'Daniel Price' |
| 23 |
|
| 24 |
# The full version, including alpha/beta/rc tags |
| 25 |
release = 'v3.12.0' |
| 26 |
|
| 27 |
# -- General configuration --------------------------------------------------- |
| 28 |
|
| 29 |
# Add any Sphinx extension module names here, as strings. They can be |
| 30 |
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 31 |
# ones. |
| 32 |
extensions = [ |
| 33 |
'sphinx_rtd_theme' |
| 34 |
] |
| 35 |
|
| 36 |
# Add any paths that contain templates here, relative to this directory. |
| 37 |
templates_path = ['_templates'] |
| 38 |
|
| 39 |
# The master toctree document. |
| 40 |
master_doc = 'index' |
| 41 |
|
| 42 |
# List of patterns, relative to source directory, that match files and |
| 43 |
# directories to ignore when looking for source files. |
| 44 |
# This pattern also affects html_static_path and html_extra_path. |
| 45 |
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 46 |
|
| 47 |
|
| 48 |
# -- Options for HTML output ------------------------------------------------- |
| 49 |
|
| 50 |
# The theme to use for HTML and HTML Help pages. See the documentation for |
| 51 |
# a list of builtin themes. |
| 52 |
# |
| 53 |
html_theme = 'sphinx_rtd_theme' |
| 54 |
|
| 55 |
# Add any paths that contain custom static files (such as style sheets) here, |
| 56 |
# relative to this directory. They are copied after the builtin static files, |
| 57 |
# so a file named "default.css" will overwrite the builtin "default.css". |
| 58 |
html_static_path = ['_static'] |
| 59 |
|
| 60 |
# -- Figure and equation numbering |
| 61 |
numfig = True |
| 62 |
math_numfig = True |
| 63 |
numfig_secnum_depth = 2 |
| 64 |
math_eqref_format = "Eq. {number}" |
| 65 |
|
| 66 |
def setup(app): |
| 67 |
app.add_css_file('css/custom.css') |