Functions | |
| replace_string_in_file (file_path, old_string, new_string) | |
| search_and_replace_in_directory (directory, old_string, new_string) | |
Variables | |
| str | ROOT_DIR = "C:/Users/david/Documents/PlatformIO/Solo_Controller/" |
| str | HTML_DIR = ROOT_DIR + "DVititoe.github.io/Solo_Controller/html/" |
| str | directory_to_search = HTML_DIR |
| str | old_string = r'<img src="[^"]*images/' |
| str | new_string = '<img src="' |
| str | images_dir = ROOT_DIR + "Solo_Controller_Repo/images/" |
| str | doc_dir = ROOT_DIR + "Solo_Controller_Repo/docs/" |
| str | dest_dir = HTML_DIR + "docs/" |
| str | extension = ".pdf" |
| s = os.path.join(doc_dir, item) | |
| d = os.path.join(dest_dir, item) | |
| str | dest_file = HTML_DIR + "BOM/Controller_Board_BOM.html" |
| str | bom_file = ROOT_DIR + "Solo_Controller_Repo/Kicad/Controller_Board/BOM/ibom.html" |
| runDoxygen.replace_string_in_file | ( | file_path, | |
| old_string, | |||
| new_string ) |
Replace all occurrences of `old_string` with `new_string` in the given file.
| runDoxygen.search_and_replace_in_directory | ( | directory, | |
| old_string, | |||
| new_string ) |
Recursively search through HTML files in the given directory and replace the old string with the new string. Uses regular expressions for the string replacement.
| str runDoxygen.bom_file = ROOT_DIR + "Solo_Controller_Repo/Kicad/Controller_Board/BOM/ibom.html" |
| runDoxygen.d = os.path.join(dest_dir, item) |
| str runDoxygen.dest_dir = HTML_DIR + "docs/" |
| str runDoxygen.dest_file = HTML_DIR + "BOM/Controller_Board_BOM.html" |
| str runDoxygen.directory_to_search = HTML_DIR |
| str runDoxygen.doc_dir = ROOT_DIR + "Solo_Controller_Repo/docs/" |
| str runDoxygen.extension = ".pdf" |
| str runDoxygen.HTML_DIR = ROOT_DIR + "DVititoe.github.io/Solo_Controller/html/" |
| str runDoxygen.images_dir = ROOT_DIR + "Solo_Controller_Repo/images/" |
| str runDoxygen.new_string = '<img src="' |
| str runDoxygen.old_string = r'<img src="[^"]*images/' |
| str runDoxygen.ROOT_DIR = "C:/Users/david/Documents/PlatformIO/Solo_Controller/" |
| runDoxygen.s = os.path.join(doc_dir, item) |