linuxdoc.compat module

compat

Implementation of a compatibility layer for sphinx and docutils related modules.

Downward compatibility is unfortunately no strength of sphinx-doc [ref] and patch levels are not really exists or if so they are not shipped within LTS distributions. Therefor a minimal compatibility layer is needed. Even if we do our best here, there are also a lot of incompatibilities in between sphinx and docutils whose fixing is out of the scope of this linuxdoc project [ref].

To get best results (and less warnings) its inevitable to use latest sphinx-doc version.

More details see Sphinx-doc’s CHANGELOG and docutils RELEASE-NOTES

linuxdoc.compat.sphinx_has_c_namespace()[source]

Checks wether Sphinx version supports .. c:namespace::

linuxdoc.compat.sphinx_has_c_types()[source]

Checks wether Sphinx version supports .. c:struct::, c:union and other C types