结合 phpDocumentor 将图像集成到 Docbook 手册中
是否有可能将图像包含到 phpDocumentor 编译的 docbook 手册中?
我尝试了:
<mediaobject>
<imageobject>
<imagedata fileref="payment_flowchart.png" format="png"/>
</imageobject>
</mediaobject>
和:
<figure><title>foo</title>
<graphic fileref="payment_flowchart.png"/>
</figure>
然后,我尝试的图像路径可能不是 phpDocumentor 所期望的,但我不知道将它们放在哪里。
也许有人以前尝试过并且取得了更大的成功?
更新
当前的非工作方法:
<refentry id="{@id}">
<refnamediv>
<refname>Company_Payment</refname>
</refnamediv>
<refsynopsisdiv>
<author>
Company
<authorblurb>
{@link mailto:[email protected] André Hoffmann}
</authorblurb>
</author>
</refsynopsisdiv>
{@toc}
<refsect1 id="{@id about}">
<title>About</title>
<para>
text
<imagedata fileref="/Users/andre/Zend/workspaces/DefaultWorkspace7/payment/doc/tutorials/company/payment_flowchart.png" format="PNG"/>
</para>
<imagedata fileref="/Users/andre/Zend/workspaces/DefaultWorkspace7/payment/doc/tutorials/company/payment_flowchart.png" format="PNG"/>
<mediaobject>
<imageobject>
<imagedata fileref="/Users/andre/Zend/workspaces/DefaultWorkspace7/payment/doc/tutorials/company/payment_flowchart.png" format="PNG"/>
</imageobject>
</mediaobject>
<figure><title>foo</title>
<graphic srccredit="Norman Walsh, 1998" fileref="/Users/andre/Zend/workspaces/DefaultWorkspace7/payment/doc/tutorials/company/payment_flowchart.png"/>
</figure>
</refsect1>
...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为他们使用
1.3.0 中修复了这个问题>
标签。你运行什么版本?I think they fixed this in 1.3.0 using the
<graphic/>
tag. What version are you running?我取得了一些成功,但只是在我删除 srccredit 属性之后。用 a 包裹标签并没有什么区别。
简单地:
I had some success but only after I dropped the srccredit attribute. Wrapping the tag in with a didn't make a bit of difference.
Simply: