diff --git a/.readthedocs.yml b/.readthedocs.yml index 3060350..48ce6bf 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -4,13 +4,20 @@ build: os: ubuntu-24.04 tools: python: "3.12" + jobs: + post_checkout: + # ensure that a tagged version is fetched + - git fetch --unshallow || true + - git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*' || true + - git fetch --all --tags || true + pre_create_environment: + - asdf plugin add uv + - asdf install uv latest + - asdf global uv latest + create_environment: + - uv venv "${READTHEDOCS_VIRTUALENV_PATH}" + install: + - UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync sphinx: configuration: docs/conf.py - -python: - install: - - method: pip - path: . - extra_requirements: - - dev \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index 451fcf5..b00d3c0 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -22,7 +22,6 @@ import re # scheil must be importable to build API documentation and for version retreiva -sys.path.insert(0, os.path.abspath('../scheil')) from scheil import __version__ as scheil_version # Remove the local version date from the end if there is one scheil_version = re.sub('\\.d[0-9]{8}', '', scheil_version)