File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -51,15 +51,9 @@ def run_prebuild_script():
51
51
52
52
def parse_markdown ():
53
53
""" Parse markdown files in the current directory into JSON """
54
- reset_knowledge_base () # Reset the JSON database file
55
54
recursive_parse_directory ('./.tmp/defang-docs' ) # Parse markdown files in the current directory
56
55
print ("Markdown parsing completed successfully." )
57
56
58
- def reset_knowledge_base ():
59
- """ Resets or initializes the knowledge base JSON file. """
60
- with open (kb_file_path , 'w' ) as output_file :
61
- json .dump ([], output_file )
62
-
63
57
def parse_markdown_file_to_json (json_output , current_id , file_path ):
64
58
""" Parses individual markdown file and adds its content to JSON """
65
59
with open (file_path , 'r' , encoding = 'utf-8' ) as file :
You can’t perform that action at this time.
0 commit comments