docs: resolve local links script escape (#21840)

Fixing warnings. Needs to be propagated to 0.1 branch if this works.

![Screenshot 2024-05-17 at 2 34
15 PM](https://github.com/langchain-ai/langchain/assets/9557659/e6ac95a9-5686-4747-9ab8-4cb49942dc8d)
This commit is contained in:
Erick Friis
2024-05-17 15:59:27 -07:00
committed by GitHub
parent d02380c504
commit cdc8e2d0c2
2 changed files with 3 additions and 3 deletions

View File

@@ -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)