Skip to content

Latest commit

 

History

History

remove-prefix-uri-resolver

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Remove a prefix from all aboslute references

This plugin resolves absolute references after removing a prefix of them to make them relative.

For example, assume that all content is stored in a folder called Content in the root of a web server, in a DITA topic there is an image reference as below:

<image href="/Content/image.png"/>

If the folder /Content/ is moved to, say, /project1/Content, all the references will be broken. This plugin installs an URIResolver that removes the /Content/ prefix of the references, making them relative references.

The prefix can be changed in the wsAccess.js file.