"""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 import os import sys # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. sys.path.insert(0, os.path.abspath("../src")) # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information project = "PubChemPy" copyright = "2014-2025, Matt Swain" author = "Matt Swain" release = "1.0.5" # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration extensions = [ "sphinx.ext.autodoc", "sphinx.ext.napoleon", "sphinx.ext.intersphinx", "sphinx.ext.ifconfig", "myst_parser", ] templates_path = ["_templates"] exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] # -- Options for HTML output ------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output html_theme = "furo" html_static_path = ["_static"] html_theme_options = { "source_repository": "https://github.com/mcs07/PubChemPy", "source_branch": "main", "source_directory": "docs/", } # -- Options for autodoc ---------------------------------------------------- # Sort autodoc members by the order they appear in the source code autodoc_member_order = "bysource" # Concatenate the class and __init__ docstrings together autoclass_content = "both" # -- Options for intersphinx ------------------------------------------------- intersphinx_mapping = { "python": ("https://docs.python.org/3/", None), "pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None), }