我正在尝试使用 phpdocumentor 2,但它的行为有点奇怪。
我正在运行 Windows 7 x64 和 xampp。
我使用 pear pear install phpdoc/phpDocumentor-beta
安装它
安装顺利,但是当我尝试运行它时,它显示了这个
$ phpdoc -f C:\xampp\htdocs\tests\comments.class.php -t C:\xampp\htdocs\tests/build/api/ -i C:\xampp\htdocs\tests/build/api/
Collecting files .. OK
Initializing parser .. OK
Parsing files
Parsing C:\xampp\htdocs\tests\comments.class.php
No summary for property $link
No summary for property $error
No summary for method grabComment()
No summary for method generateComments()
No summary for method generateReplies()
No summary for method generateForm()
No summary for method isValidMail()
No summary for method ip()
Storing cache in "C:\xampp\htdocs\tests\build\api" .. OK
Load cache .. 0.003s
Preparing template "responsive-twig" .. 0.054s
Preparing 15 transformations .. 0.000s
Build "elements" index .. 0.000s
Replace textual FQCNs with object aliases .. 0.001s
Build "packages" index .. 0.002s
Build "namespaces" index and add namespaces to "elements" .. 0.000s
Transform analyzed project into artifacts .. 2.961s
Analyze results and write report to log .. 0.000s
然后它就停止了......
当我检查生成的文档时,没有显示有关该类的数据
有人遇到过这个问题吗?
最佳答案
我猜这是由于不完整且测试版默认模板responsive-twig
造成的。没有报告错误,因为没有错误。 PHPDocumentor 顺利完成,没有任何错误。
将模板更改为响应式会让事情变得更好。您可以通过添加
<transformations>
<template name="responsive" />
</transformations>
到您的 phpdoc.xml 或提供 --template=responsive
命令行选项。我没有尝试其他模板。
最后我坚持了doxygen现在,直到 PHPDocumentor2 模板更加完整且功能丰富为止。
关于beta - phpdocumentor 2 未完成文档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17642849/