diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 0456f3c..a44e587 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -27,5 +27,3 @@ build: # Avoid setuptools-scm dirty Git index issues - git reset --hard HEAD - git clean -fdx - # Enforce fail_on_shallow for setuptools-scm - - export SETUPTOOLS_SCM_OVERRIDES_FOR_${READTHEDOCS_PROJECT//-/_}='{scm.git.pre_parse="fail_on_shallow"}' diff --git a/docs/source/conf.py b/docs/source/conf.py index e183def..6602384 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -4,10 +4,6 @@ # https://www.sphinx-doc.org/en/master/usage/configuration.html from importlib.metadata import version as get_version -rst_prolog = """ -.. |petab_doc_url| replace:: https://petab.readthedocs.io/en/latest/index.html -""" - # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information @@ -33,6 +29,10 @@ templates_path = ["_templates"] exclude_patterns = [] +rst_prolog = f""" +.. |petab_doc_url| replace:: https://petab.readthedocs.io/en/latest/index.html +.. |release| replace:: {release} +""" # -- Options for HTML output ------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output diff --git a/docs/source/index.rst b/docs/source/index.rst index bc9ff18..367e808 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -18,7 +18,7 @@ PEtab GUI - A graphical user interface for PEtab **PEtab GUI** is a user-friendly graphical interface for creating and managing parameter estimation problems using the `PEtab `_ format. .. note:: - Current version: 0.1.3 + Current version: |release| Quick Links -----------