1+ ****************************************************************
2+ ** This is a modified version of phpdoc/chm **
3+ ****************************************************************
4+
5+ BUILDING THE MANUAL IN WINDOWS HELP FILE (.CHM) FORMAT
6+
7+ Note: Where 'lang' is mentioned in this doc, it is the actual
8+ language code (e.g. en) of the manual you are compiling,
9+ not the 'lang' word itself!
10+
11+ With the herein described tools you're able to build the .chm manual
12+ with two options:
13+
14+ a) Simply build the traditional html manual
15+ b) Make a fancy version of the html manual and build it
16+
17+ =======================================================================
18+ WHAT YOU NEED
19+
20+ * Microsoft(r) HTML Help Workshop.
21+ You can download it freely at:
22+ http://msdn.microsoft.com/library/en-us/htmlhelp/html/vsconhh1start.asp
23+ You need the complete workshop package install (about 4 Megs).
24+ Of course you need Microsoft(r) Windows to run that software :)
25+
26+ * The html manual (build with 'make')
27+
28+ The .chm manual generator files (from cvs.php.net):
29+
30+ make_chm.bat - The only file you need to run yourself.
31+ make_chm.php - Auto toc generator.
32+
33+ To make the fancy manual, additional files are needed:
34+
35+ make_chm_fancy.php - Converts the normal html files to fancy
36+ (good looking) pages
37+ make_chm_index_lang.html - Fancy index. (you find it in phpdoc/lang
38+ dir, if it exists for that language).
39+ make_chm_spc.gif - GIF file needed by the fancy pages.
40+ make_chm_style.css - This adds some good style to html files.
41+
42+ =======================================================================
43+ INSTALLATION
44+
45+ Install Microsoft(r) HTML Help Workshop.
46+
47+ Put the above listed make_chm_* files to one directory.
48+
49+ Open make_chm.bat in a text editor and set the appropriate
50+ environment variables. You need to
51+
52+ - set PHP_PATH to the full path of the CGI php.exe on
53+ your machine (including php.exe).
54+ - set PHP_HELP_COMPILER to the full path of hhc.exe on
55+ your machine (including hhc.exe).
56+ - set PHP_HELP_COMPILE_LANG to the language code of the
57+ actual manual (use the code from cvs.php.net, eg. hu)
58+ - set PHP_HELP_COMPILE_DIR to the directory of the
59+ html manual (eg. ..\html when you build it like mentioned in the howto)
60+ - set PHP_HELP_COMPILE_INDEX to the index filename in
61+ the directory you set above. This used to be manual.html
62+ for a long time, but it seems it is now index.html.
63+
64+ The following variable is only needed for the fancy manual:
65+
66+ - set PHP_HELP_COMPILE_FANCYDIR to the directory name where
67+ the fancy pages will go.
68+ You can decide not to sacrifice any more space for the fancy dir
69+ (it takes ~25% more space than the normal html-manual), and set
70+ this variable to the same as PHP_HELP_COMPILE_DIR. Then your old
71+ HTML files will be rewritten to be fancy ones.
72+
73+ =======================================================================
74+ BUILDING THE MANUAL:
75+
76+ Put the html manual (~2100 files) under the subdir specified above in
77+ PHP_HELP_COMPILE_DIR (eg. html).
78+
79+ To compile the NORMAL manual, use the 'normal' command line option:
80+
81+ make_chm normal
82+
83+ To compile the FANCY manual, just run:
84+
85+ make_chm
86+
87+ After this process, you will have smarty_manual_lang.chm...
88+
89+ =======================================================================
90+ The fancy design improvemenets and the .css file is based on
91+ the newsite design(TM) work of Colin Viebrock [
[email protected] ] :)
92+
93+ Written by Gabor Hojtsy (
[email protected] ), and adapted by
94+ Thomas Schoefbeck (
[email protected] ). Contact them or the phpdoc list
95+ (
[email protected] ) if you have any questions or suggestions...
96+
97+ Last modified $Date$
0 commit comments