【发布时间】:2016-12-22 14:56:08
【问题描述】:
我在一年前为 phpDocumentor 制作了一个自定义模板(扩展自 responsiv-twig)。
现在有了新版本的 phpDocumentor,我无法使用它。
我还尝试将干净的 (responsive-twig) 模板从 phpDocumentor.phar 复制到目录。在这两种情况下,我都会出现以下错误消息:
Preparing template "/Users/rov/Documents/phpStorm/phpDocNewTemplat ..
[Symfony\Component\Filesystem\Exception\IOException]
Failed to create "phar:///Users/rov/Documents/phpStorm/IA_Local_Development_Instance_Symfony_3/docs/phpDoc/phpDocumentor.phar/src/phpDocumentor/Transformer/../../../data/templates/phpDocNewTemplate"
如果我尝试使用 gulp 生成文档,也会出现同样的问题。
我试过了:
chmod -R 777 on my own template folder(没有改变)chmod -R 777 on my phpDocumentor folder(没有改变)使用原始模板:
--template=responsive-twig(有效)用谷歌搜索问题(没有发现任何有用的信息)
这是我的终端命令:
php docs/phpDoc/phpDocumentor.phar -d ./src -t ./docs/phpDoc --template="/Users/rov/Documents/phpStorm/phpDocNewTemplate" --title=MyTitle
【问题讨论】: