"Find Unreferenced Resources" could support DITA-OT project files
Posted: Fri Dec 23, 2022 4:18 am
As writers update and restructure their content, we accumulate unused topics, maps, images, and even DITAVAL files.
Oxygen has a well-implemented Find Unreferenced Resources feature. However, it is only invokable from the DITA Maps Manager. To run it on multiple input maps, you must open one of the maps, then manually add the additional maps.
In addition, only maps are supported as input. We have many (100+) maps. Some have similar file names and it is not always clear which are production maps and which are temporary/abandoned/unused maps.
Our DITA-OT project files are the final arbiter of what we publish. It would be useful to be able to multi-select our deliverable files:
then right-click and choose Find Unreferenced Resources from that context menu.
In the following testcase:
if I selected the deliverable files shown above, then searched for unused resources in the entire dita/ directory, I would expect to detect the following unused files:
It would be a bonus if the search could recurse into Oxygen publishing templates to also detect the following unused files:
but that is just bonus points. 
Oxygen has a well-implemented Find Unreferenced Resources feature. However, it is only invokable from the DITA Maps Manager. To run it on multiple input maps, you must open one of the maps, then manually add the additional maps.
In addition, only maps are supported as input. We have many (100+) maps. Some have similar file names and it is not always clear which are production maps and which are temporary/abandoned/unused maps.
Our DITA-OT project files are the final arbiter of what we publish. It would be useful to be able to multi-select our deliverable files:
then right-click and choose Find Unreferenced Resources from that context menu.
In the following testcase:
if I selected the deliverable files shown above, then searched for unused resources in the entire dita/ directory, I would expect to detect the following unused files:
Code: Select all
dita/bookA/UNUSED.jpg
dita/bookB/UNUSED.png
dita/bookC/UNUSED.dita
dita/UNUSED/topic1.dita
dita/UNUSED/topic2.dita
dita/UNUSED.ditamap
dita/_common/resources/UNUSED.dita
dita/_common/_ditaval/UNUSED.ditaval
dita/_project/UNUSED.xml
dita/_warehouse/_ditaval/UNUSED.ditaval
dita/_warehouse/_products/UNUSED.dita
dita/_warehouse/_products/UNUSED.ditamap
Code: Select all
dita/_common/_template/css/UNUSED.css
dita/_common/_template/fonts/UNUSED.ttf
dita/_common/_template/html-fragments/UNUSED.xhtml
dita/_common/_template/xsl/UNUSED.xsl
