我需要为 PhpDocumentor 创建自定义模板。问题是 中定义的路径template.xml
,即使指定为绝对路径,也无法正确解析。PhpDocumentor 在供应商目录中查找它们。
<template>
<author>Code Mine</author>
<email>office@code-mine.com</email>
<description>Template for Confluence API</description>
<version>1.0.0</version>
<transformations>
<transformation writer="twig" source="./index.html.twig" artifact="index.html"/>
<transformation query="indexes.namespaces" writer="twig" source="./namespace.html.twig" />
<transformation query="indexes.classes" writer="twig" source="./class.html.twig" />
</transformations>
</template>
尽管树枝模板位于 xml 引用的路径中,但我收到文件不存在的错误。
编辑:
我还尝试设置所有配置详细信息,phpdoc.xml
希望路径将被视为相对于配置文件,但没有运气。