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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 3 deletions

View File

@ -65,7 +65,7 @@ render:
$(PYTHON) scripts/notebook_convert.py $(INTERMEDIATE_DIR) $(OUTPUT_NEW_DOCS_DIR)
md-sync:
rsync -avm --include="*/" --include="*.mdx" --include="*.md" --include="*.png" --include="*/_category_.yml" --exclude="*" $(INTERMEDIATE_DIR)/ $(OUTPUT_NEW_DOCS_DIR)
rsync -avmq --include="*/" --include="*.mdx" --include="*.md" --include="*.png" --include="*/_category_.yml" --exclude="*" $(INTERMEDIATE_DIR)/ $(OUTPUT_NEW_DOCS_DIR)
append-related:
$(PYTHON) scripts/append_related_links.py $(OUTPUT_NEW_DOCS_DIR)

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)