[ 
http://jira.codehaus.org/browse/DOXIA-354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=185327#action_185327
 ] 

Lukas Theussl commented on DOXIA-354:
-------------------------------------

This is not possible yet out of the box, see DOXIA-355. As a workaround you 
could use the antrun-plugin to copy any resources before the book is built, for 
instance:

{code:xml}

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <id>book</id>
            <phase>pre-site</phase>
            <configuration>
              <tasks>
                <copy todir="${project.build.directory}/generated-site/pdf/">
                  <fileset dir="${basedir}/src/books/resources/"/>
                </copy>
                <copy todir="${project.build.directory}/generated-site/rtf/">
                  <fileset dir="${basedir}/src/books/resources/"/>
                </copy>
              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
{code}

(this will only work if you build the book during the site phase)

Assuming that you have an images/ folder in /src/books/resources/, you can then 
include an image in an apt file like that:

{noformat}
[../images/architecture.png]
{noformat}

> Add images to example-book
> --------------------------
>
>                 Key: DOXIA-354
>                 URL: http://jira.codehaus.org/browse/DOXIA-354
>             Project: Maven Doxia
>          Issue Type: Improvement
>          Components: Book
>    Affects Versions: 1.1.1
>            Reporter: Steven Swor
>            Priority: Blocker
>             Fix For: 1.1.2
>
>
> Images are an important feature of a technical manual or book, yet try as I 
> might, I cannot get them to work with a Doxia book.  Could someone please 
> update the example-book to include at least one image, so that the rest of 
> the world may benefit from knowing how to properly add images to a Doxia book?
> It would be beneficial if the example could show how to add an image from a 
> local file as well as from a URL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to