Paths to literal include files and download files can now be absolute too.

This commit is contained in:
Georg Brandl
2009-02-24 13:38:15 +01:00
parent 29247f0896
commit fb511a015a
9 changed files with 49 additions and 20 deletions

View File

@@ -264,9 +264,12 @@ Referencing downloadable files
See :download:`this example script <../example.py>`.
The given filename is relative to the directory the current source file is
contained in. The ``../example.py`` file will be copied to the output
directory, and a suitable link generated to it.
The given filename is usually relative to the directory the current source
file is contained in, but if it absolute (starting with ``/``), it is taken
as relative to the top source directory.
The ``example.py`` file will be copied to the output directory, and a
suitable link generated to it.
Other semantic markup