1
0
mirror of https://github.com/php/phd.git synced 2026-03-23 22:52:05 +01:00
Files
archived-phd/HOWTO.GENERATE_CHM
2009-07-27 07:52:22 +00:00

44 lines
1.8 KiB
Plaintext

PhD - PHP DocBook
Copyright(c) 2007-2009 The PHP Documentation Team
All Rights Reserved.
Warning : you'll need Windows to build CHM files.
First, you will need to get the last SVN version of the PhD renderer from the repository:
svn checkout http://svn.php.net/repository/phd/branches/PHD_0_4 phd
Then, you need to get the documentation:
svn checkout http://svn.php.net/repository/phpdoc/modules/doc-en
If you want to render a translated documentation instead:
svn checkout http://svn.php.net/repository/phpdoc/modules/doc-{lang}
where {lang} is the ISO 639-1 Code of the desired language.
(see http://www.sil.org/iso639-3/codes.asp for a list of codes)
e.g. 'pt' for Portuguese, or pt_BR for Brazillian Portuguese.
The example above would change to:
svn checkout http://svn.php.net/repository/phpdoc/modules/doc-pt
or
svn checkout http://svn.php.net/repository/phpdoc/modules/doc-pt_BR
To render the documentation:
#1) cd {PHPDOC_PATH}
where {PHPDOC_PATH} is the path of the grabbed phpdoc directory
#2) php configure.php [ --with-lang={lang} ]
to generate the .manual.xml file required by PhD
#3) cd {RENDER_PATH}
#4) php {PHD_PATH}\build.php -t chmsource {PHPDOC_PATH}
#5) You should see the message "[hh:mm:ss - VERBOSE_FORMAT_RENDERING] Finished rendering"
Finally, to compile the CHM sources:
#1) Download & install Microsoft HTML Help Workshop (http://go.microsoft.com/fwlink/?linkid=14188)
#2) Open the "chm\php_manual_en.hhp" (CHM Project) file with HTML Help Workshop
#3) In the "File" menu, click on "Compile...", then the "Compile" button.
#4) After the compilation process, you should see the message "Created {RENDER_PATH}\chm\php_manual_{lang}.chm". You can quit HTML Help Workshop.
Done ! The compiled CHM file is located on "{RENDER_PATH}\chm\php_manual_{lang}.chm".
Please read the README file for further information.
- The PHP Documentation team