PhpDocumentor : How to choose templates?

标签 php templates phpdoc phpdocumentor2

最近我遇到了 PhpDocumentor。它看起来像是一个很好的文档工具。我想使用 phpDocumentor 附带的“responsive-twig”作为模板。 我试过了;

  • --template="responsive-twig"在 phpdoc 命令行中,显示“错误:遇到未知命令行选项“--template”,请使用 phpdoc -h 寻求帮助”

  • 将/usr/share/php/phpDocumentor/data/phpdoc.tpl.xml 中“template”标签的“name”属性更改为“responsive-twig”,默认为“clean”

  • 将/usr/share/php/phpDocumentor/phpdoc.dist.xml 中“template”标签的“name”属性更改为“responsive-twig”

但是我无法更改默认模板。

我已经通过 PEAR 安装了 phpDocumentor。我有三个 phpDocumentor 目录。一个位于/var/www 中,另外两个('phpDocumentor' 和 'PhpDocumentor')位于/usr/share/php 中。

/usr/share/php/phpDocumentor/data/templates 下有一个“responsive-twig”文件夹。

请帮忙!

最佳答案

仅供引用, 通过以下方式成功:

yum install graphviz
pear install Image_GraphViz
rm -rf /tmp/phpdoc-twig-cache
phpdoc -d ./joomla-cms/libraries -t ./joomla-doc --template=responsive-twig

使用最新的 phpDocumentor 版本 2.8.1
可能有帮助!

关于PhpDocumentor : How to choose templates?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22670688/

相关文章:

javascript - FPDF:使用 AJAX 输出 PDF

c++ - GCC 7.X C++17 模板自动参数类型推导与枚举类错误

php - 如何在 php 中键入提示生成器?

php - 记录(phpdoc)生成器的最佳方法(产生的方法)

正则表达式去除 phpdoc 多行注释

php - 解析错误 : syntax error, unexpected '(' , expecting ',' or ';' in

php - mysql 在开始和/或结束时不断删除零

php - PHP 按时间排序表行

c++ - 错误 C4430 : missing type specifier - int assumed. 注意:C++ 不支持我的构造函数的默认整数

arrays - 本地数组更改时如何重新渲染 meteor blaze 模板?