|
| 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 datetime |
| 7 | + |
| 8 | +project = "pyprecice" |
| 9 | +author = "The preCICE developers" |
| 10 | +copyright = f"{datetime.datetime.now().year}, {author}" |
| 11 | + |
| 12 | +extensions = [ |
| 13 | + "sphinx.ext.autodoc", |
| 14 | + "sphinx.ext.intersphinx", |
| 15 | + "myst_parser", |
| 16 | +] |
| 17 | + |
| 18 | +intersphinx_mapping = { |
| 19 | + "python": ("https://docs.python.org/3/", None), |
| 20 | + "numpy": ("https://numpy.org/doc/stable/", None), |
| 21 | + "mpi4py": ("https://mpi4py.readthedocs.io/en/latest/", None), |
| 22 | +} |
| 23 | + |
| 24 | +# exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", ".docs_venv"] |
| 25 | +include_patterns = ["*.rst", "*.md"] |
| 26 | + |
| 27 | +html_theme = "sphinx_rtd_theme" |
| 28 | + |
| 29 | +source_suffix = { |
| 30 | + ".rst": "restructuredtext", |
| 31 | + ".md": "markdown", |
| 32 | +} |
| 33 | + |
| 34 | +autodoc_class_signature = "separated" |
| 35 | +autodoc_typehints = "description" |
| 36 | +autodoc_typehints_format = "short" |
| 37 | +autodoc_member_order = "bysource" |
| 38 | + |
| 39 | +suppress_warnings = ["myst.xref_missing"] |
| 40 | + |
| 41 | +# The cython detection relyies on a built and installed version of the package |
| 42 | +try: |
| 43 | + import precice |
| 44 | +except: |
| 45 | + raise RuntimeError("Cannot import precice. Please install pyprecice first") |
0 commit comments