简体   繁体   中英

Create chm file for html files by recursively searching through folders

I want to recursively search through folders for html files and generate a chm file for it. While displaying them in chm file the table of contents must be reflecting the folder structure where the html files were present.

I tried HTML Help Workshop for this, but adding each and every file is time taking and the folder structure keeps changing frequently. In the end I want to run a batch file/python script which will take folder path as input and give chm file as output.

Please have a look at FAR HTML or other help authoring Tools (to avoid reinventing the wheel).

With FAR HTML you can do anything with your prefered HTML-Editor outside eg a paragraph <a> with your folder structure on top of your HTML page and put FAR into your workflow. The Wizard's are great, please see:

FAR HTML Tour

One tip - don't look at all the options of FAR when starting.

  1. Put your HTML files to structured subfolders of your project folder eg

    welcome.htm
    design.css
    First_Steps\\download.htm
    First_Steps\\starting_program.htm
    How_to_extend\\extend_menu.htm
    How_to_extend\\power_function.htm
    images\\gui_screenshot.jpg

  2. Drag and drop these files to FAR

  3. Start the wizard for HTMLHelp 1.x see main menu: Authoring > Help Wizard

  4. ready ..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM