copying images from ditamap souce folder to html5 ouput

20 views
Skip to first unread message

Gurushesh Pawar

unread,
Nov 17, 2023, 7:19:33 AM11/17/23
to DITA-OT Users
I have ditamap source files and I have created one folder and placed some images in that folder, but these images are not used in any of the Dita files I want that images because want to use these as a logo in HTML output so how can I copy these images from dita sauce file to htmlt5 output folder?

gary

unread,
Nov 17, 2023, 9:58:55 AM11/17/23
to Gurushesh Pawar, DITA-OT Users
Hi, Gurushesh..

You can reference the images from a topic, and in the map add a topicref to that topic with processing-role="resource-only" (or toc="no"). That images topic and its images will be processed and copied to the output folder, but the topic won't be included in the Table of Contents.

Cheers!
-g-


On Fri, Nov 17, 2023, 04:19 Gurushesh Pawar <gurus...@metapercept.com> wrote:
I have ditamap source files and I have created one folder and placed some images in that folder, but these images are not used in any of the Dita files I want that images because want to use these as a logo in HTML output so how can I copy these images from dita sauce file to htmlt5 output folder?

--
You received this message because you are subscribed to the Google Groups "DITA-OT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dita-ot-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/dita-ot-users/c0635332-5922-42bf-8ea9-fdc7d333a1b5n%40googlegroups.com.

Radu Coravu

unread,
Nov 20, 2023, 12:49:13 AM11/20/23
to gary, Gurushesh Pawar, DITA-OT Users
An alternative would be to have a custom DITA OT plugin which contributes a custom ANT target which copies the images to the output folder, similarly to what this plugin used to do:

https://github.com/oxygenxml/dita-media-support/blob/master/com.oxygenxml.media/build_custom.xml

Reply all
Reply to author
Forward
0 new messages