docs: make build less verbose (#26833)

This commit is contained in:
Erick Friis
2024-09-24 15:30:05 -07:00
committed by GitHub
parent 425c0f381f
commit 95269366ae
2 changed files with 1 additions and 3 deletions

View File

@@ -48,10 +48,8 @@ def _generate_related_links_section(integration_type: str, notebook_name: str):
def _process_path(doc_path: Path):
content = doc_path.read_text()
print(doc_path)
pattern = r"/docs/integrations/([^/]+)/([^/]+).mdx?"
match = re.search(pattern, str(doc_path))
print(bool(match))
if match and match.group(2) != "index":
integration_type = match.group(1)
notebook_name = match.group(2)