You can't do that with vanilla Sphinx. An implementation of include
directive seems to does not care any additional configuration option:
But you can implement and setup your own directive. Check out Writing a simple extension section of Developing extensions for Sphinx.
So the easiest way seems to overrides sphinx.directives.other.Include
. (Actually, Sphinx's Include
also overrode the standard include directive docutils.parsers.rst.directives.misc.Include
for better and correct path interpreting.)