Skip to content

Commit

Permalink
done!
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Apr 29, 2024
1 parent 2dea7ea commit e808127
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions _scripts/extract_mdx_props.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,13 @@ def extract_codeblock_props(mdx_content: str) -> str:
def test_extract_codeblock_props():
# read all .mdx files in a directory
directory = "/Users/bracesproul/code/lang-chain-ai/langsmith-docs/docs"
all_files = [os.path.join(directory, file) for file in os.listdir(directory)]
mdx_files = [file for file in all_files if file.endswith(".mdx")]
mdx_files = []

for root, dirs, files in os.walk(directory):
for file in files:
if file.endswith(".mdx"):
file_path = os.path.join(root, file)
mdx_files.append(file_path)

for file_path in mdx_files:
new_content = ""
Expand Down

0 comments on commit e808127

Please sign in to comment.