diff --git a/docs/_scripts/gen_envs_mds.py b/docs/_scripts/gen_envs_mds.py index 89ed7924f..54b509709 100644 --- a/docs/_scripts/gen_envs_mds.py +++ b/docs/_scripts/gen_envs_mds.py @@ -93,7 +93,7 @@ def get_docs_from_py(file_path): full_env_names = [ full_name for full_name in all_environments.keys() - if env_name in full_name + if env_name == full_name.split("/")[1].rsplit("_", 1)[0] ] env_name_version = full_env_names[0].split("/")[1] if env_type == "classic" and env_name != "rps":