最近我遇到了 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/