mirror of
https://github.com/hwchase17/langchain.git
synced 2025-10-28 22:30:49 +00:00
docs: resolve local links script escape (#21840)
Fixing warnings. Needs to be propagated to 0.1 branch if this works. 
This commit is contained in:
@@ -11,7 +11,7 @@ def update_links(doc_path, docs_link):
|
||||
content = f.read()
|
||||
|
||||
# replace relative links
|
||||
content = re.sub("\]\(\.\/", f"]({docs_link}", content)
|
||||
content = re.sub(r"\]\(\.\/", f"]({docs_link}", content)
|
||||
|
||||
with open(DOCS_DIR / doc_path, "w") as f:
|
||||
f.write(content)
|
||||
|
||||
Reference in New Issue
Block a user