【问题标题】:PHPDocumentor `-d` results in empty documentation, but `-f` is working as expectedPHPDocumentor `-d` 导致文档为空,但 `-f` 按预期工作
【发布时间】:2018-06-17 03:35:09
【问题描述】:
  • 我的 PHP 代码位于名为 src 的文件夹中。
  • 该 src 文件夹位于名为 lib 的文件夹中。
  • 我的文档将在 lib/docs 中。
  • 所以,src 和 lib 都位于同一个文件夹中。

现在当我生成文档时:

  • 我试过了:php phpDocumentor.phar -f ../pdk/Something.php 效果很好!
  • 我试过:php phpDocumentor.phar -d ../pdk 但它不起作用,文档已生成但它是空的。甚至Something.php都没有生成它的文档。

【问题讨论】:

    标签: php phpdoc phpdocumentor2


    【解决方案1】:

    这是一个错误 -- https://github.com/phpDocumentor/phpDocumentor2/issues/1930

    应该在下一个版本中解决。

    解决方法是在目录中执行 phpdoc,使 -d arg 为 -d .

    【讨论】:

      猜你喜欢
      • 2015-10-16
      • 2021-09-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-19
      • 1970-01-01
      • 2019-10-10
      相关资源
      最近更新 更多