Skip to content

Commit 510cbab

Browse files
committed
Change from jupyter-book to sphinx, update docs and add some more logging
1 parent 062fcaf commit 510cbab

22 files changed

Lines changed: 1243 additions & 266 deletions

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
args: [ --fix ]
2222
# Run the formatter.
2323
- id: ruff-format
24-
exclude: 'demos/.*.py$'
24+
exclude: 'demo/.*.py$'
2525

2626

2727
- repo: https://github.com/asottile/add-trailing-comma

_config.yml

Lines changed: 0 additions & 68 deletions
This file was deleted.

_toc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ root: README
44
parts:
55
- caption: Demos
66
chapters:
7+
- file: "demo/maths.py"
78
- file: "demo/unit_cube"
89
- file: "demo/lv_ellipsoid"
910
- file: "demo/biv_ellipsoid"

conf.py

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
###############################################################################
2+
# Auto-generated by `jupyter-book config`
3+
# If you wish to continue using _config.yml, make edits to that file and
4+
# re-generate this one.
5+
###############################################################################
6+
author = "Henrik Finsberg"
7+
bibtex_bibfiles = ["docs/refs.bib"]
8+
codeautolink_concat_default = True
9+
comments_config = {"hypothesis": False, "utterances": False}
10+
copyright = "2025"
11+
exclude_patterns = [
12+
"**.ipynb_checkpoints",
13+
".DS_Store",
14+
".github/*",
15+
".pytest_cache/*",
16+
".tox/*",
17+
"Thumbs.db",
18+
"_build",
19+
"third_party/*",
20+
"jupyter_execute/",
21+
"**.jupyter_cache",
22+
]
23+
extensions = [
24+
"sphinx_togglebutton",
25+
"sphinx_copybutton",
26+
"myst_nb",
27+
"sphinx_comments",
28+
"sphinx_external_toc",
29+
"sphinx.ext.intersphinx",
30+
"sphinx_design",
31+
"sphinx_book_theme",
32+
"sphinx.ext.autodoc",
33+
"sphinx.ext.napoleon",
34+
"sphinx.ext.viewcode",
35+
"sphinxcontrib.bibtex",
36+
"sphinx_codeautolink",
37+
"sphinx_multitoc_numbering",
38+
]
39+
external_toc_exclude_missing = True
40+
external_toc_path = "_toc.yml"
41+
html_baseurl = ""
42+
html_favicon = ""
43+
html_last_updated_fmt = "%b %d, %Y"
44+
html_logo = "docs/logo.png"
45+
html_sourcelink_suffix = ""
46+
html_static_path = ["_static"]
47+
html_theme = "sphinx_book_theme"
48+
html_theme_options = {
49+
"search_bar_text": "Search this book...",
50+
"launch_buttons": {
51+
"notebook_interface": "classic",
52+
"binderhub_url": "",
53+
"jupyterhub_url": "",
54+
"thebe": False,
55+
"colab_url": "",
56+
"deepnote_url": "",
57+
},
58+
"path_to_docs": "",
59+
"repository_url": "https://github.com/finsberg/fenicsx-pulse",
60+
"repository_branch": "main",
61+
"extra_footer": "",
62+
"home_page_in_toc": True,
63+
"announcement": "",
64+
"analytics": {
65+
"google_analytics_id": "",
66+
"plausible_analytics_domain": "",
67+
"plausible_analytics_url": "https://plausible.io/js/script.js",
68+
},
69+
"use_repository_button": True,
70+
"use_edit_page_button": False,
71+
"use_issues_button": True,
72+
}
73+
html_title = "fenicsx-pulse"
74+
intersphinx_mapping = {
75+
"basix": ["https://docs.fenicsproject.org/basix/main/python/", None],
76+
"ffcx": ["https://docs.fenicsproject.org/ffcx/main/", None],
77+
"ufl": ["https://docs.fenicsproject.org/ufl/main/", None],
78+
"dolfinx": ["https://docs.fenicsproject.org/dolfinx/main/python", None],
79+
"petsc4py": ["https://petsc.org/release/petsc4py", None],
80+
"mpi4py": ["https://mpi4py.readthedocs.io/en/stable", None],
81+
"numpy": ["https://numpy.org/doc/stable/", None],
82+
"matplotlib": ["https://matplotlib.org/stable/", None],
83+
"pyvista": ["https://docs.pyvista.org/", None],
84+
"packaging": ["https://packaging.pypa.io/en/stable/", None],
85+
"gotranx": ["https://finsberg.github.io/gotranx/", None],
86+
"cardiac_geometries": ["https://computationalphysiology.github.io/cardiac-geometriesx/", None],
87+
}
88+
latex_engine = "pdflatex"
89+
myst_enable_extensions = ["amsmath", "dollarmath", "linkify"]
90+
myst_url_schemes = ["mailto", "http", "https"]
91+
nb_custom_formats = {".py": ["jupytext.reads", {"fmt": "py"}]}
92+
nb_execution_allow_errors = False
93+
nb_execution_cache_path = ""
94+
nb_execution_excludepatterns: list[str] = []
95+
nb_execution_in_temp = False
96+
nb_execution_mode = "cache"
97+
nb_execution_show_tb = True
98+
nb_execution_timeout = 3000
99+
nb_output_stderr = "show"
100+
numfig = True
101+
pygments_style = "sphinx"
102+
suppress_warnings = ["mystnb.unknown_mime_type", "bibtex.duplicate_citation"]
103+
use_jupyterbook_latex = True
104+
use_multitoc_numbering = True

0 commit comments

Comments
 (0)