当前位置: 动力学知识库 > 问答 > 编程问答 >

phpdoc - PHP Documentor --output option

问题描述:

I have installed PHP Documentor through PEAR. but output option is not working.

when i use simple command like

phpdoc -d source/path -t target/path --template responsive

it works fine. but when i use -o or --output option like this

phpdoc -d source/path -t target/path -o PDF:default:*

it gives following error.

[RuntimeException]

The "-o" option does not exist.

i have tried other output formats as well like -o HTML:Smarty:PHP and -o HTML:Smarty:default but the result is same.

网友答案:

the -o option does not exist on phpdocs 2
Look option whit:

phpdoc -h
网友答案:

In the new version 2. * yet there is no such pdf template. There is not also the option -o.

there are only http://www.phpdoc.org/templates

template selection

phpdoc --template="clean" --template="checkstyle" -d .

BTW I use the older version (1.4.4) I wanted to save to pdf.

phpdoc -o PDF:default:default -t ./docs -d ./

But created an bad document. Maybe version 1.4.4 does not work with PHP 5.5.11 on the issue in PDF format.

I managed in version 1.4.4 only generate HTML.

phpdoc -o HTML:frames:earthli -t ./docs -d ./

So I went back to version 2 * and I wait pdf template.

分享给朋友:
您可能感兴趣的文章:
随机阅读: