Skip to content

Commit 6554807

Browse files
committed
Add configuration
1 parent cd78b09 commit 6554807

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

docs/conf.py

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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 = "alabaster"
28+
html_static_path = ["_static"]
29+
30+
source_suffix = {
31+
".rst": "restructuredtext",
32+
".md": "markdown",
33+
}
34+
35+
autodoc_class_signature = "separated"
36+
autodoc_typehints = "description"
37+
autodoc_typehints_format = "short"
38+
autodoc_member_order = "bysource"
39+
40+
suppress_warnings = ["myst.xref_missing"]
41+
42+
# The cython detection relyies on a built and installed version of the package
43+
try:
44+
import precice
45+
except:
46+
raise RuntimeError("Cannot import precice. Please install pyprecice first")

0 commit comments

Comments
 (0)