【问题标题】:phpdocumentor 2 not completing the docsphpdocumentor 2 未完成文档
【发布时间】:2013-07-12 15:28:58
【问题描述】:

我正在尝试使用 phpdocumentor 2,但它的行为有点奇怪。
我正在运行 Windows 7 x64 和 xampp。
我用梨子安装了它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

然后它就停止了......
当我检查生成的文档时,没有显示有关该类的数据
有人遇到过这个问题吗?

【问题讨论】:

  • 遇到了同样的问题,同样的平台,同样的行为。正在调查...
  • 如果您有任何发现请告诉我

标签: beta phpdoc


【解决方案1】:

我猜这是由于 responsive-twig 的不完整和 beta 默认模板。没有错误报告,因为没有错误。 PHPDocumentor 刚刚完成,没有任何错误。

将模板更改为responsive 会使事情变得更好。您可以通过添加

<transformations>
  <template name="responsive" />
</transformations>

到您的 phpdoc.xml 或提供 --template=responsive 命令行选项。我没有尝试其他模板。

最后,我暂时坚持使用doxygen,直到 PHPDocumentor2 模板更加完整且功能更加丰富。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-12-31
    • 1970-01-01
    • 2019-12-11
    • 1970-01-01
    • 2012-12-21
    • 2012-11-24
    • 1970-01-01
    相关资源
    最近更新 更多