Skip to content

Commit

Permalink
Changed script code to run under main.
Browse files Browse the repository at this point in the history
  • Loading branch information
yoavo-codium committed Nov 8, 2024
1 parent d537b18 commit 1685631
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/build_docs_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ def get_markdown_content(directory):
markdown_content = re.sub(r'\n{3,}', '\n', markdown_content)
return markdown_content

docs_path = Path(__file__).parent.parent / "docs"
markdown_content = get_markdown_content(docs_path)
with open(".llm_context.txt", "w") as f:
f.write(markdown_content)
if __name__ == "__main__":
docs_path = Path(__file__).parent.parent / "docs"
markdown_content = get_markdown_content(docs_path)
with open(".llm_context.txt", "w") as f:
f.write(markdown_content)

0 comments on commit 1685631

Please sign in to comment.