Fix doc build

This commit is contained in:
Victor Zverovich 2024-07-24 13:40:54 -07:00
parent f8581bcecf
commit 0c02813791

View File

@ -61,7 +61,7 @@ if len(args) > 0:
version = args[1]
ret = call(['mike'] + args + ['--config-file', config_build_path,
'--branch', 'master'], cwd=site_dir, env=env)
if ret != 0:
if ret != 0 or version == 'dev':
sys.exit(ret)
redirect_page_path = os.path.join(site_dir, version, 'api.html')
with open(redirect_page_path, "w") as file: