Skip to content

Commit 643a6c0

Browse files
committed
doc: intersphinx, tox env
* Simplify linking to the PEtab specs * Add tox env for building the documentation
1 parent dbd7e04 commit 643a6c0

File tree

4 files changed

+28
-6
lines changed

4 files changed

+28
-6
lines changed

doc/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
]
4848

4949
intersphinx_mapping = {
50+
"petab": ("https://petab.readthedocs.io/en/latest/", None),
5051
"pandas": ("https://pandas.pydata.org/docs/", None),
5152
"numpy": ("https://numpy.org/devdocs/", None),
5253
"sympy": ("https://docs.sympy.org/latest/", None),
@@ -62,7 +63,7 @@
6263
exclude_patterns = [
6364
"build/doctrees",
6465
"build/html",
65-
"**.ipynb_checkpoints",
66+
"build/jupyter_execute/**" "**.ipynb_checkpoints",
6667
"logo/LICENSE.md",
6768
]
6869

petab/v1/problem.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242

4343
class Problem:
4444
"""
45-
PEtab parameter estimation problem as defined by
45+
PEtab parameter estimation problem.
46+
47+
A PEtab problem as defined by:
4648
4749
- model
4850
- condition table
@@ -51,7 +53,9 @@ class Problem:
5153
- observables table
5254
- mapping table
5355
54-
Optionally it may contain visualization tables.
56+
Optionally, it may contain visualization tables.
57+
58+
See also :doc:`petab:v1/documentation_data_format`.
5559
5660
Parameters:
5761
condition_df: PEtab condition table

petab/v2/problem.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@
4040

4141
class Problem:
4242
"""
43-
PEtab parameter estimation problem as defined by
43+
PEtab parameter estimation problem
44+
45+
A PEtab parameter estimation problem as defined by
4446
4547
- model
4648
- condition table
@@ -50,7 +52,9 @@ class Problem:
5052
- observables table
5153
- mapping table
5254
53-
Optionally it may contain visualization tables.
55+
Optionally, it may contain visualization tables.
56+
57+
See also :doc:`petab:v2/documentation_data_format`.
5458
5559
Parameters:
5660
condition_df: PEtab condition table

tox.ini

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = quality,unit
2+
envlist = quality,unit,doc
33
isolated_build = True
44

55
[testenv]
@@ -23,3 +23,16 @@ commands =
2323
tests
2424
description =
2525
Basic tests
26+
27+
[testenv:doc]
28+
description = Build the documentation
29+
extras = doc,vis
30+
deps=
31+
# workaround for m2r2 issue with py3.13: No module named 'pkg_resources'
32+
# see also: https://github.com/CrossNox/m2r2/issues/72
33+
setuptools
34+
allowlist_externals = rm
35+
commands =
36+
rm -rf {tox_root}/doc/build
37+
sphinx-build -W -b html . build/html
38+
changedir = {tox_root}/doc

0 commit comments

Comments
 (0)