Skip to content

Commit 4194391

Browse files
authored
Fix RTD build (#186)
* Remove not-so-important setuptools config. * Dynamic version number
1 parent 6ff778e commit 4194391

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

.readthedocs.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,3 @@ build:
2727
# Avoid setuptools-scm dirty Git index issues
2828
- git reset --hard HEAD
2929
- git clean -fdx
30-
# Enforce fail_on_shallow for setuptools-scm
31-
- export SETUPTOOLS_SCM_OVERRIDES_FOR_${READTHEDOCS_PROJECT//-/_}='{scm.git.pre_parse="fail_on_shallow"}'

docs/source/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
# https://www.sphinx-doc.org/en/master/usage/configuration.html
55
from importlib.metadata import version as get_version
66

7-
rst_prolog = """
8-
.. |petab_doc_url| replace:: https://petab.readthedocs.io/en/latest/index.html
9-
"""
10-
117
# -- Project information -----------------------------------------------------
128
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
139

@@ -33,6 +29,10 @@
3329
templates_path = ["_templates"]
3430
exclude_patterns = []
3531

32+
rst_prolog = f"""
33+
.. |petab_doc_url| replace:: https://petab.readthedocs.io/en/latest/index.html
34+
.. |release| replace:: {release}
35+
"""
3636

3737
# -- Options for HTML output -------------------------------------------------
3838
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ PEtab GUI - A graphical user interface for PEtab
1818
**PEtab GUI** is a user-friendly graphical interface for creating and managing parameter estimation problems using the `PEtab <https://petab.readthedocs.io/en/latest/>`_ format.
1919

2020
.. note::
21-
Current version: 0.1.3
21+
Current version: |release|
2222

2323
Quick Links
2424
-----------

0 commit comments

Comments
 (0)