mirror of
https://github.com/hwchase17/langchain.git
synced 2025-10-27 13:53:43 +00:00
docs: edit links, direct for notebooks (#22051)
This commit is contained in:
@@ -13,8 +13,13 @@ def update_links(doc_path, docs_link):
|
||||
# replace relative links
|
||||
content = re.sub(r"\]\(\.\/", f"]({docs_link}", content)
|
||||
|
||||
frontmatter = """---
|
||||
custom_edit_url:
|
||||
---
|
||||
"""
|
||||
|
||||
with open(DOCS_DIR / doc_path, "w") as f:
|
||||
f.write(content)
|
||||
f.write(frontmatter + content)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user