mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Paths to literal include files and download files can now be absolute too.
This commit is contained in:
12
tests/root/subdir/includes.txt
Normal file
12
tests/root/subdir/includes.txt
Normal file
@@ -0,0 +1,12 @@
|
||||
Including in subdir
|
||||
===================
|
||||
|
||||
.. absolute filename
|
||||
.. literalinclude:: /special/code.py
|
||||
:lines: 1
|
||||
|
||||
.. relative filename
|
||||
.. literalinclude:: ../special/code.py
|
||||
:lines: 2
|
||||
|
||||
Absolute :download:`/img.png` download.
|
||||
Reference in New Issue
Block a user