diff --git a/doc/source/conf.py b/doc/source/conf.py index c7f8f202b5..fb17de5941 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -27,9 +27,15 @@ def get_wheelhouse_assets_dictionary(): assets_context_os = ["Linux", "Windows", "MacOS"] assets_context_runners = ["ubuntu-latest", "windows-latest", "macos-latest"] assets_context_python_versions = ["3.9", "3.10", "3.11", "3.12"] - assets_context_version = json.loads( - requests.get("https://api.github.com/repos/ansys/pyansys-geometry/releases/latest").content - )["name"] + if get_version_match(__version__) == "dev": + # Just point to the latest version + assets_context_version = json.loads( + requests.get( + "https://api.github.com/repos/ansys/pyansys-geometry/releases/latest" + ).content + )["name"] + else: + assets_context_version = f"v{__version__}" assets = {} for assets_os, assets_runner in zip(assets_context_os, assets_context_runners):