]> granicus.if.org Git - docbook-dsssl/commitdiff
Added documentation for how to add images to WebHelp
authorKasun Gajasinghe <kasunbg@gmail.com>
Sat, 4 Dec 2010 04:52:28 +0000 (04:52 +0000)
committerKasun Gajasinghe <kasunbg@gmail.com>
Sat, 4 Dec 2010 04:52:28 +0000 (04:52 +0000)
xsl/webhelp/docsrc/readme.xml
xsl/webhelp/template/content/images/sample.jpg [new file with mode: 0755]

index 4d191906e156aa4314f55966241a5c099772dc14..e9979fe4d3236acc9613a3f997580635ac13312b 100755 (executable)
@@ -683,6 +683,40 @@ webhelp.indexer.language=en</programlisting></para>
           </listitem>
         </itemizedlist></para>
     </section>
+    <section>
+      <title>Adding images</title>
+      <para>This section shows how to add images to WebHelp. For that, follow the simple procedure given.<itemizedlist>
+          <listitem>
+            <para>Add all the images to template/content folder.</para>
+          </listitem>
+          <listitem>
+            <para>Then refer to those images from your docbook document.</para>
+            <para>Following image is from <emphasis role="bold">webhelp/template/content/images/sample.jpg</emphasis>. The
+              docbook code is shown below.</para>
+            <para>
+              <figure>
+                <title>Sample Image</title>
+                <mediaobject>
+                  <imageobject>
+                    <imagedata fileref="images/sample.jpg" format="JPG"/>
+                  </imageobject>
+                </mediaobject>
+              </figure>
+            </para>
+            <example>
+              <title>Example code for adding images. Note down the relative path used</title>
+              <programlisting>&lt;figure>
+  &lt;title>Sample&lt;/title>
+  &lt;mediaobject>
+    &lt;imageobject>
+      &lt;imagedata fileref="<emphasis role="bold">images/sample.jpg</emphasis>" format="JPG"/>
+    &lt;/imageobject>
+  &lt;/mediaobject>
+&lt;/figure></programlisting>
+            </example>
+          </listitem>
+        </itemizedlist></para>
+    </section>
   </chapter>
 
   <chapter>
diff --git a/xsl/webhelp/template/content/images/sample.jpg b/xsl/webhelp/template/content/images/sample.jpg
new file mode 100755 (executable)
index 0000000..d8ec5c3
Binary files /dev/null and b/xsl/webhelp/template/content/images/sample.jpg differ