mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Closes #670: Allow docutils "standard includes" to be again specified with the `include
` directive.
This commit is contained in:
parent
ef674a20a6
commit
6b6ca70622
@ -347,6 +347,10 @@ class Include(BaseInclude):
|
||||
|
||||
def run(self):
|
||||
env = self.state.document.settings.env
|
||||
if self.arguments[0].startswith('<') and \
|
||||
self.arguments[0].endswith('>'):
|
||||
# docutils "standard" includes, do not do path processing
|
||||
return BaseInclude.run(self)
|
||||
rel_filename, filename = env.relfn2path(self.arguments[0])
|
||||
self.arguments[0] = filename
|
||||
return BaseInclude.run(self)
|
||||
|
Loading…
Reference in New Issue
Block a user