Commits

Georg Brandl committed 5792ea5

Closes #670: Allow docutils "standard includes" to be again specified with the ``include`` directive.

  • Participants
  • Parent commits 3939e4a

Comments (0)

Files changed (1)

File sphinx/directives/other.py

 
     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)