MakeV2

processor(lang:str, content_html:str, file_path:Union[str, os.PathLike], base_name:Union[str, os.PathLike], processed_files:list, label_to_file:dict)
Process the given file and generate the corresponding HTML output. Designed to be universal by receiving the content as a string. 1. Extracts labels from the content. 2. Generates the HTML path based on the language and file structure. 3. Creates the processed file entry with content, labels, and paths. 4. Updates the label_to_file mapping with the new file path.
Parameters:
Labels:

Projects_Docy_MakeV2_processor

process_decider(lang:str, file_path:Union[str, os.PathLike], base_name:Union[str, os.PathLike], file_extension:str, processed_files:list, label_to_file:dict, output_base_dir:Union[str, os.PathLike])
Decide how to process the file based on its extension. Should be updated based on language and file type. 1. For C files, extract functions and generate HTML. 2. For Python files, extract objects and generate HTML. 3. For Markdown files, convert to HTML.
Parameters:
Todo:
- Add support for C++ files.
- Add support for CUDA files.
- Add support for other file types if needed.
Labels:

Projects_Docy_MakeV2_process_decider

build_tree()
Build a nested dictionary for navigation structure.
Labels:

Projects_Docy_MakeV2_build_tree

generate_tree_html()
Generate HTML for navigation tree with collapsible sections and indentation.
Labels:

Projects_Docy_MakeV2_generate_tree_html

create_nav_menu()
Create navigation menu with language and devlog sections, applying distinct colors.
Labels:

Projects_Docy_MakeV2_create_nav_menu

GenerateMainPage()
Generate index.html with all sections.
Labels:

Projects_Docy_MakeV2_GenerateMainPage