Merge, update structured output guide

This commit is contained in:
jacoblee93
2024-04-18 20:41:49 -07:00
parent 72482a95d1
commit 803b2b37e2
32 changed files with 466 additions and 608 deletions

View File

@@ -7,8 +7,8 @@ DOCS_DIR = Path(os.path.abspath(__file__)).parents[1]
def update_links(doc_path, docs_link):
for path in (DOCS_DIR / doc_path).glob('**/*'):
if path.is_file() and path.suffix in ['.md', '.mdx', '.ipynb']:
for path in (DOCS_DIR / doc_path).glob("**/*"):
if path.is_file() and path.suffix in [".md", ".mdx", ".ipynb"]:
with open(path, "r") as f:
content = f.read()
@@ -20,4 +20,4 @@ def update_links(doc_path, docs_link):
if __name__ == "__main__":
update_links(sys.argv[1], sys.argv[2])
update_links(sys.argv[1], sys.argv[2])