| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
Rendering the manualThe PEAR documentation gets - like the PHP Manual - built using PHP's very own DocBook rendering system called PhD. Installation is a breeze using pear: $ pear install doc.php.net/phd-beta doc.php.net/phd_pear-beta
Besides that, one only needs a SVN checkout of the peardoc module. Preparing the buildBefore building, you need to use the configure.php script provided by peardoc. This script serves two purposes:
Just change into your peardoc source folder and run: $ php configure.php If you see that lines, everything is fine and you can continue compiling the manual.
In case something goes wrong, the config script will tell you either where it failed, or which commands to execute to find the right spot: $ php configure.php Fix the error and run configure.php again until it tells you everything is ok. Compiling the manualNow that you configured everything properly, run the command that configure.php told you. The command will be something along that: $ phd -L en -P PEAR -f xhtml -o build/en/ -d .manual.xml
When PhD doesn't report any errors, your generated HTML documentation will be available in build/en/html/. Partial buildsWhen writing documentation for a single package, you probably don't always want to compile the whole manual. PhD allows you to compile a small part of the manual which is faster than doing the whole thing. Just pass "-p package.category.packagename" as parameter to PhD, and only the part of the manual below that ID will be created.
Other sources to test your documentationSeveral PEAR members regularly build the documentation on their own machine in shorter cycles than the pear.php.net server. When you don't have the chance to test and build your changes, you can use any of this build servers to check everything is fine:
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「Rendering the manual」をGoogle検索
|