diff --git a/docs/conf.py b/docs/conf.py index fbb01c73e0..aa73acff24 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -234,7 +234,8 @@ switcher_path = os.path.join(html_static_path[0], "switcher.json") versions = [] # the latest is in the archive -for i in range(10, int(version_short.split(".")[1]) - 1): +correction = -1 if "dev" in version_long else 0 +for i in range(10, int(version_short.split(".")[1]) + correction): if i >= 34: versions.append((f"1.{i}", f"dali_1_{i}_0", "short_user")) else: