Re: problem with phd output dir for php format
| From: | Philip Olson | Date: | Wed, 21 Apr 2010 19:05:03 +0000 |
| Subject: | Re: problem with phd output dir for php format | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969381671@lists.php.net to get a copy of this message | ||
On Apr 21, 2010, at 10:31 AM, Daniel Convissor wrote:
> Hi Folks:
>
> I just set up a mirror of the PHP website on my Linux box for
> documentation testing purposes. The website has the manual output in
> "<outputdir>/manual/en". But PhD puts the output in
> "<outputdir>/php-web".
>
> This happens because Package/PHP/Web.php defines the format name as
> "PHP-Web" and then uses that to set the output dir:
> $this->setOutputDir(Config::output_dir() .
> strtolower($this->getFormatName()) . '/');
>
> I'm generating the docs like this:
> phd -d .manual.xml -o /data/nobackup/phpweb/manual/en -f php -P PHP
>
> So how is one supposed to use PhD to generate the docs in a PHP web
> mirror?
Typically people use a symlink, see:
http://wiki.php.net/doc/phd/view
Which could end up being like:
ln -s /myphdbuild/php-web /myphpwebmirror/manual/en
And the 1.0 version of phd changed the directory naming scheme, so likely the phd docs haven't
caught up everywhere, yet.
Regards,
Philip