Skip to content

Commit f7fbd10

Browse files
include mdx files in knowledge base
1 parent b1f648b commit f7fbd10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/get_knowledge_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def recursive_parse_directory(root_dir):
193193
""" Recursively parses all markdown files in the directory. """
194194
for dirpath, dirnames, filenames in os.walk(root_dir):
195195
for filename in filenames:
196-
if filename.lower().endswith('.md'):
196+
if filename.lower().endswith('.md') or filename.lower().endswith('.mdx'):
197197
file_path = os.path.join(dirpath, filename)
198198
if 'cli' in dirpath.lower() or 'cli' in filename.lower():
199199
parse_cli_markdown(file_path)

0 commit comments

Comments
 (0)