mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-09 13:00:34 +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)
|
$(PYTHON) scripts/notebook_convert.py $(INTERMEDIATE_DIR) $(OUTPUT_NEW_DOCS_DIR)
|
||||||
|
|
||||||
md-sync:
|
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:
|
append-related:
|
||||||
$(PYTHON) scripts/append_related_links.py $(OUTPUT_NEW_DOCS_DIR)
|
$(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):
|
def _process_path(doc_path: Path):
|
||||||
content = doc_path.read_text()
|
content = doc_path.read_text()
|
||||||
print(doc_path)
|
|
||||||
pattern = r"/docs/integrations/([^/]+)/([^/]+).mdx?"
|
pattern = r"/docs/integrations/([^/]+)/([^/]+).mdx?"
|
||||||
match = re.search(pattern, str(doc_path))
|
match = re.search(pattern, str(doc_path))
|
||||||
print(bool(match))
|
|
||||||
if match and match.group(2) != "index":
|
if match and match.group(2) != "index":
|
||||||
integration_type = match.group(1)
|
integration_type = match.group(1)
|
||||||
notebook_name = match.group(2)
|
notebook_name = match.group(2)
|
||||||
|
Loading…
Reference in New Issue
Block a user