|
1 | 1 | """Sphinx configuration.""" |
2 | 2 |
|
| 3 | +# -- Project information ----------------------------------------------------- |
| 4 | + |
3 | 5 | project = "MDIO" |
4 | 6 | author = "TGS" |
5 | 7 | copyright = "2023, TGS" |
| 8 | + |
| 9 | +# -- General configuration --------------------------------------------------- |
| 10 | + |
| 11 | +# Add any Sphinx extension module names here, as strings. They can be |
| 12 | +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 13 | +# ones. |
| 14 | + |
6 | 15 | extensions = [ |
7 | 16 | "sphinx.ext.autodoc", |
8 | 17 | "sphinx.ext.napoleon", |
| 18 | + "sphinx.ext.intersphinx", |
| 19 | + "sphinx.ext.autosummary", |
9 | 20 | "sphinx.ext.autosectionlabel", |
10 | 21 | "sphinx_click", |
11 | 22 | "sphinx_copybutton", |
12 | 23 | "myst_nb", |
| 24 | + "sphinx_design", |
13 | 25 | ] |
14 | 26 |
|
| 27 | +# List of patterns, relative to source directory, that match files and |
| 28 | +# directories to ignore when looking for source files. |
| 29 | +# This pattern also affects html_static_path and html_extra_path. |
| 30 | +exclude_patterns = [ |
| 31 | + "_build", |
| 32 | + "Thumbs.db", |
| 33 | + "jupyter_execute", |
| 34 | + ".DS_Store", |
| 35 | + "**.ipynb_checkpoints", |
| 36 | +] |
| 37 | + |
| 38 | +intersphinx_mapping = { |
| 39 | + "python": ("https://docs.python.org/3", None), |
| 40 | + "numpy": ("https://numpy.org/doc/stable/", None), |
| 41 | + "zarr": ("https://zarr.readthedocs.io/en/stable/", None), |
| 42 | +} |
| 43 | + |
| 44 | +pygments_style = "vs" |
| 45 | +pygments_dark_style = "material" |
| 46 | + |
15 | 47 | autodoc_typehints = "description" |
16 | 48 | autodoc_typehints_format = "short" |
17 | 49 | autodoc_member_order = "groupwise" |
18 | | -autoclass_content = "both" |
| 50 | +autoclass_content = "class" |
19 | 51 | autosectionlabel_prefix_document = True |
20 | 52 |
|
21 | 53 | html_theme = "furo" |
22 | 54 |
|
23 | 55 | myst_number_code_blocks = ["python"] |
24 | 56 | myst_heading_anchors = 2 |
| 57 | +myst_words_per_minute = 80 |
25 | 58 | myst_enable_extensions = [ |
| 59 | + "colon_fence", |
26 | 60 | "linkify", |
27 | 61 | "replacements", |
28 | 62 | "smartquotes", |
| 63 | + "attrs_inline", |
29 | 64 | ] |
30 | 65 |
|
31 | 66 | # sphinx-copybutton configurations |
|
0 commit comments