Skip to content

Commit 6910d4d

Browse files
committed
doc: intersphinx, tox env
* Simplify linking to the PEtab specs * Add tox env for building the documentation
1 parent c848722 commit 6910d4d

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
@@ -41,7 +41,9 @@
4141

4242
class Problem:
4343
"""
44-
PEtab parameter estimation problem as defined by
44+
PEtab parameter estimation problem.
45+
46+
A PEtab problem as defined by:
4547
4648
- model
4749
- 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:v1/documentation_data_format`.
5458
5559
Parameters:
5660
condition_df: PEtab condition table

petab/v2/problem.py

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

4040
class Problem:
4141
"""
42-
PEtab parameter estimation problem as defined by
42+
PEtab parameter estimation problem
43+
44+
A PEtab parameter estimation problem as defined by
4345
4446
- model
4547
- condition table
@@ -49,7 +51,9 @@ class Problem:
4951
- observables table
5052
- mapping table
5153
52-
Optionally it may contain visualization tables.
54+
Optionally, it may contain visualization tables.
55+
56+
See also :doc:`petab:v2/documentation_data_format`.
5357
5458
Parameters:
5559
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)