| 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 |
import os |
| 7 |
import sys |
| 8 |
|
| 9 |
# If extensions (or modules to document with autodoc) are in another directory, |
| 10 |
# add these directories to sys.path here. |
| 11 |
sys.path.insert(0, os.path.abspath("../src")) |
| 12 |
|
| 13 |
# -- Project information ----------------------------------------------------- |
| 14 |
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
| 15 |
|
| 16 |
project = "PubChemPy" |
| 17 |
copyright = "2014-2025, Matt Swain" |
| 18 |
author = "Matt Swain" |
| 19 |
release = "1.0.5" |
| 20 |
|
| 21 |
# -- General configuration --------------------------------------------------- |
| 22 |
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
| 23 |
|
| 24 |
extensions = [ |
| 25 |
"sphinx.ext.autodoc", |
| 26 |
"sphinx.ext.napoleon", |
| 27 |
"sphinx.ext.intersphinx", |
| 28 |
"sphinx.ext.ifconfig", |
| 29 |
"myst_parser", |
| 30 |
] |
| 31 |
|
| 32 |
templates_path = ["_templates"] |
| 33 |
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
| 34 |
|
| 35 |
# -- Options for HTML output ------------------------------------------------- |
| 36 |
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output |
| 37 |
|
| 38 |
html_theme = "furo" |
| 39 |
html_static_path = ["_static"] |
| 40 |
html_theme_options = { |
| 41 |
"source_repository": "https://github.com/mcs07/PubChemPy", |
| 42 |
"source_branch": "main", |
| 43 |
"source_directory": "docs/", |
| 44 |
} |
| 45 |
|
| 46 |
# -- Options for autodoc ---------------------------------------------------- |
| 47 |
|
| 48 |
# Sort autodoc members by the order they appear in the source code |
| 49 |
autodoc_member_order = "bysource" |
| 50 |
|
| 51 |
# Concatenate the class and __init__ docstrings together |
| 52 |
autoclass_content = "both" |
| 53 |
|
| 54 |
# -- Options for intersphinx ------------------------------------------------- |
| 55 |
|
| 56 |
intersphinx_mapping = { |
| 57 |
"python": ("https://docs.python.org/3/", None), |
| 58 |
"pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None), |
| 59 |
} |