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