mirror of
https://github.com/hwchase17/langchain
synced 2024-11-13 19:10:52 +00:00
docs: make build less verbose (#26833)
This commit is contained in:
parent
425c0f381f
commit
95269366ae
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user