notfound.utils
Module Contents
Functions
|
Replace |
- notfound.utils.replace_uris(app, doctree, nodetype, nodeattr)
Replace
nodetypeURIs fromdoctreeto the proper one.If
nodetypeis an image (docutils.nodes.image), the URL is prefixed withBuilder.imagedirand the original image path is added toBuilder.imagesso it’s copied using Sphinx’s internals before finalizing the building.- Parameters:
app (sphinx.application.Sphinx) – Sphinx Application
doctree (docutils.nodes.document) – doctree representing the document
nodetype (docutils.nodes.Node) – type of node to replace URIs
nodeattr (str) – node attribute to be replaced