From a2b1b2448114595dca233357a8e49be387f617bf Mon Sep 17 00:00:00 2001 From: Erick Friis Date: Thu, 31 Oct 2024 11:12:56 -0700 Subject: [PATCH] x --- docs/api_reference/create_api_rst.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/api_reference/create_api_rst.py b/docs/api_reference/create_api_rst.py index d907eec4c360e..b5807e0bd1372 100644 --- a/docs/api_reference/create_api_rst.py +++ b/docs/api_reference/create_api_rst.py @@ -601,9 +601,11 @@ def _build_index(dirs: List[str]) -> None: ] for header_name, dir_ in sorted( zip(integration_headers, integrations), - key=lambda h_d: integrations_to_show.index(h_d[1]) - if h_d[1] in integrations_to_show - else len(integrations_to_show), + key=lambda h_d: ( + integrations_to_show.index(h_d[1]) + if h_d[1] in integrations_to_show + else len(integrations_to_show) + ), )[: len(integrations_to_show)]: integration_grid += f'\n- header: "**{header_name}**"\n content: {_package_namespace(dir_).replace("_", "-")} {_get_package_version(_package_dir(dir_))}\n link: {dir_.replace("-", "_")}/index.html' doc += f"""## Integrations @@ -648,7 +650,7 @@ def main(dirs: Optional[list] = None) -> None: dirs = [ dir_ for dir_ in os.listdir(ROOT_DIR / "libs") - if dir_ not in ("cli", "partners", "standard-tests") + if dir_ not in ("cli", "partners", "standard-tests", "packages.yml") ] dirs += [ dir_