private void generateTOCFile(LinkDatabase database, HelpModuleCollection help)
			throws IOException {
		message("Generating TOC file: " + tocOutputFilename + "...");
		GhidraTOCFile sourceTOCFile = help.getSourceTOCFile();
		Path outputFile = outputDir.resolve(tocOutputFilename);
		database.generateTOCOutputFile(outputFile, sourceTOCFile);
		message("\tfinished generating TOC file");
	}
This class:
<ul>
     <li>Creates a XXX_map.xml file (topic IDs to help files)</li>
     <li>Creates a XXX_TOC.xml file from a source toc.xml file</li>
     <li>Finds unused images</li>
</ul>
Ghidra/Framework/Help/src/main/java/help/JavaHelpFilesBuilder.java