Close #4: Added a `:download:` role that marks a non-document file

for inclusion into the HTML output and links to it.
This commit is contained in:
Georg Brandl
2008-12-28 21:30:25 +01:00
parent e2c52d6e90
commit b3d55c3139
13 changed files with 147 additions and 32 deletions

View File

@@ -14,3 +14,11 @@ Test file and literal inclusion
:encoding: latin-1
.. include:: wrongenc.inc
:encoding: latin-1
Testing downloadable files
==========================
Download :download:`img.png` here.
Download :download:`this <subdir/img.png>` there.
Don't download :download:`this <nonexisting.png>`.