Skip to content

Commit

Permalink
docs: make build less verbose (langchain-ai#26833)
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis authored and Sheepsta300 committed Oct 1, 2024
1 parent 1cb9f1d commit dc9cd6c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions docs/scripts/append_related_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dc9cd6c

Please sign in to comment.