The `include` directive now supports absolute paths, which are interpreted as relative to the source directory.

This commit is contained in:
Georg Brandl
2010-05-30 12:59:42 +02:00
parent 3bd9e4617e
commit f3c706edae
7 changed files with 37 additions and 5 deletions
+2
View File
@@ -10,6 +10,8 @@ Test file and literal inclusion
.. include:: subdir/include.inc
.. include:: /subdir/include.inc
.. literalinclude:: literal.inc
:language: python
+3
View File
@@ -13,3 +13,6 @@ Absolute :download:`/img.png` download.
.. absolute image filename
.. image:: /img.png
.. absolute include filename
.. include:: /test.inc
+3
View File
@@ -0,0 +1,3 @@
.. This file is included from subdir/includes.txt.
This is an include file.