将Docbook手册中的图像与phpDocumentor结合使用

时间:2009-09-01 23:11:20

标签: php documentation docbook phpdoc

是否有可能将图像包含在由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:my@mail.com 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>
...

2 个答案:

答案 0 :(得分:0)

我认为他们使用<graphic/>标记在1.3.0中修复此问题。你在运行什么版本?

答案 1 :(得分:0)

我取得了一些成功,但只有在我删除了srccredit属性之后。用标签包装标签并没有什么区别。

简单地:

<graphic fileref="/images/logo.png" />
相关问题