|
| 1 | +import os |
| 2 | +import sys |
| 3 | +import shutil |
| 4 | +sys.path.insert(0, os.path.abspath('../src')) |
| 5 | + |
| 6 | +# Copy notebooks into docs/examples before build |
| 7 | +examples_src = os.path.abspath('../examples') |
| 8 | +examples_dst = os.path.abspath('examples') |
| 9 | +shutil.copytree(examples_src, examples_dst, dirs_exist_ok=True) |
| 10 | + |
| 11 | +# Configuration file for the Sphinx documentation builder. |
| 12 | +# |
| 13 | +# For the full list of built-in configuration values, see the documentation: |
| 14 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 15 | + |
| 16 | +# -- Project information ----------------------------------------------------- |
| 17 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
| 18 | + |
| 19 | +project = 'pcxarray' |
| 20 | +copyright = '2025, Mississippi State University' |
| 21 | +author = "GCER Lab @ Mississippi State University" |
| 22 | + |
| 23 | +# -- General configuration --------------------------------------------------- |
| 24 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
| 25 | + |
| 26 | +extensions = [] |
| 27 | + |
| 28 | +templates_path = ['_templates'] |
| 29 | +exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 30 | + |
| 31 | +extensions = [ |
| 32 | + 'sphinx.ext.autodoc', |
| 33 | + 'sphinx.ext.napoleon', # For Google/Numpy style docstrings |
| 34 | + 'numpydoc', |
| 35 | + 'nbsphinx', |
| 36 | + 'myst_parser', |
| 37 | +] |
| 38 | +autodoc_default_options = { |
| 39 | + 'members': True, |
| 40 | + 'undoc-members': True, |
| 41 | + 'show-inheritance': True, |
| 42 | +} |
| 43 | + |
| 44 | + |
| 45 | +# -- Options for HTML output ------------------------------------------------- |
| 46 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output |
| 47 | + |
| 48 | +# html_theme = 'alabaster' |
| 49 | +html_theme = "sphinx_rtd_theme" |
| 50 | +html_static_path = ['_static'] |
| 51 | +html_logo = '_static/gcer_alt.png' |
0 commit comments