PhD: The [PH]P based [D]ocbook renderer RC1 released

Quick note; We released PhD0.1RC1 today \o/

Building the documentations has never been as easy or as fast.

Note: You'll need 200M free diskspace (90M for the phpdoc XML sources and 110M for the generated html/php files).

  • Fetching the phpdoc sources:

    bjori@lindsay:~$ cvs co phpdoc
    cvs checkout: Updating phpdoc
    U phpdoc/.cvsignore
    U phpdoc/LICENSE
    U phpdoc/

  • Configure and test the XML

    bjori@lindsay:~$ cd phpdoc/
    bjori@lindsay:~/phpdoc$ php configure.php
    configure.php: $Id: configure.php,v 1.7 2007/10/02 12:03:16 bjori Exp $
    PHP version: 5.3.0-dev
    * No missing ids found
    All good.
    All you have to do now is run 'phd /home/bjori/phpdoc'

  • Installing and rendering the documentation

    bjori@lindsay:~/phpdoc$ cd ..
    bjori@lindsay:~$ pear install
    downloading PhD-0.1RC1.tgz ...
    Starting to download PhD-0.1RC1.tgz (19,683 bytes)
    .......done: 19,683 bytes
    install ok: channel://__uri/PhD-0.1RC1
    bjori@lindsay:~$ mkdir build
    bjori@lindsay:~$ cd build/
    bjori@lindsay:~/build$ time phd /home/bjori/phpdoc
    Creating php/toc/
    Creating php/toc/
    Creating php/toc/
    Creating php/toc/
    Creating php/toc/
    Creating php/toc/

    real 1m40.448s
    user 1m20.309s
    sys 0m6.420s
    bjori@lindsay:~/build$ ls -l
    total 26M
    -rw-r--r-- 1 bjori users 26M 10-02 12:28 bightml.html
    drwxr-xr-x 2 bjori users 364K 10-02 12:28 html/
    drwxr-xr-x 3 bjori users 336K 10-02 12:28 php/
    bjori@lindsay:~/build$ ls php | wc -l

Thats right. It takes less than 2 minutes (on my two years old Precision M70 laptop) to render the entire documentations in three formats.

To celebrate the release we have registered a new "special" mirror,,
which is running these experimental builds of PhD, and would like to request
that people take a quick look at it before we start pushing these builds out
to the rest of the mirrors.

There is currently no known bug in these builds so if you find one then
please file a bug report or at least let us know about it.
I don't care how small or major the bug is, a missing whitespace or a
whole page missing, let us know if you find anything.



  1. It seems like a lot of the stuff (such as the comments) are bold, and it kind of makes it harder to read.

  2. Schmalls: Where exactly?
    I'm not seeing any "extra" bold paragraphs in the manual nor the comments.

  3. I don't see the bold problem now. I was on a computer at work that was running IE7, but I checked it with both Firefox and IE 6.0 on my home computer. I will check it again when I go to work and see if it I can reproduce it.

  4. Philip noticed the same problem.
    Its already fixed in CVS :)

  5. Yeah, there doesn't seem to be a problem now.

  6. Empty table cells are rendered ugly in IE 7:

    That's likely caused because the td tag isn't closed for empty cells. (It might also need some dummy content to be rendered correctly, e.g.  .)

  7. Mark: Fixed

    Thanks Mark & Schmalls! :)

  8. Are there any plans to improve the display of the OO part of the API? Something more like JavaDoc would be useful, now the PHP API is becoming more and more OO

  9. Jorrit: Yup. We are planning a major upgrade to the OO documentations.
    Initial draft can be found on (all comments greatly appreciated).

  10. Is PhD useful only for the PHP docs, or would it accept arbitrary DocBook source and produce something somewhat presentable?

  11. Larry: The goal of the project is to become an generic Docbook renderer, but at the moment it only has a " theme".
    A "standard" theme will be part of PhD in the very near future.

  12. This comment has been removed by a blog administrator.


Post a Comment

Popular posts from this blog

Next Generation MongoDB Driver for PHP!

Unix manual pages for PHP functions