结合 phpDocumentor 将图像集成到 Docbook 手册中

发布于 2024-08-03 03:44:50 字数 1866 浏览 17 评论 0 原文

是否有可能将图像包含到 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>
...

is there a possibility to include images into a docbook manual compiled by phpDocumentor?

I tried both:

<mediaobject>
 <imageobject>
  <imagedata fileref="payment_flowchart.png" format="png"/> 
 </imageobject>
</mediaobject>

and:

<figure><title>foo</title>
 <graphic fileref="payment_flowchart.png"/>
</figure>

Then again the image paths I tried might not have been what phpDocumentor expected, but I don't know where to put them anyway really.

Maybe someone has tried it before and had more success?

UPDATE

Current non-working approach:

<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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

攒眉千度 2024-08-10 03:44:50

我认为他们使用 1.3.0 中修复了这个问题> 标签。你运行什么版本?

I think they fixed this in 1.3.0 using the <graphic/> tag. What version are you running?

通知家属抬走 2024-08-10 03:44:50

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

简单地:

<graphic fileref="/images/logo.png" />

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:

<graphic fileref="/images/logo.png" />
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文