7.17. sphinx.ext.literalincludewrap¶
The Sphinx extension setupdocx.sphinx.ext.literalincludewrap adjusts the path argument to the top of the document tree.
7.17.1. Module¶
Wrapper extension for the directive literalinclude. Extends path by search.
7.17.2. Functions¶
7.17.2.1. align_paths_to_top¶
-
setupdocx.sphinx.ext.literalincludewrap.
align_paths_to_top
(inst)[source]¶ Aligns the provided include relative paths. Checks first the existence of the path, if not exists adds the upward relative path as offset and checks the existence again. In case of a match the path is replace by the existent, else kept unchanged. Ignores absolute paths.