Want to create chm file from website html pages

安稳与你 提交于 2020-01-01 19:49:39

问题


I have some html pages which are integrated with a web site. Now the requirement is to create a .CHM file for the required pages.

To do this task manually will take a huge amount of time. Please help me to extract the only html files from the website without getting its css, js or other files. Because, I do not want other files except .html.

I will use those html files and create .CHM file.

The main purpose of this task is to create online help.

Your answer will be appreciated a lot.. :)


回答1:


Creating online help - also known as help authoring - is a task with a learning curve. It is not clear to me why you want to extract the .css and .js. I think you will need the .css e.g. in your online help project later.

A CHM file can be thought of as a zipped (compiled) web site. The content pane of the help viewer on the right displays the content like a browser window. If you want to see the same formatting by .css as on your web site you'll have to integrate these .css files into the CHM file.

And this may become a time consuming task depending of your web site structure and coding inside of your HTML files e.g. the CSS links. A scenario could be to copy the HTML files, make a new .css and change the CSS links as needed (maybe by FAR with "Find And Replace") for a structured "sub web" as described below for preparing the CHM compile task.

On the Internet you can find many (some expensive) tools to create CHM files. One of my favorite shareware tool is Rob Chandler's FAR HTML (http://www.helpwaregroup.com/products/far). It's recommended - the wizards are great and FAR HTML has a 30-days full working trial. To quickly manipulate HTML files, or author help Projects FAR HTML will save you lots of time.

It's required to install Microsft HTMLHelp Workshop.

Please see: http://www.help-info.de/en/Help_Info_HTMLHelp/hh_download_install.htm

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

  1. Copy your HTML files to structured subfolders of your project folder e.g.:

     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 HTML

  3. Start the wizard for HTMLHelp 1.x
  4. ready ..


来源:https://stackoverflow.com/questions/32344463/want-to-create-chm-file-from-website-html-pages

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!