mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
@@ -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>`.
|
||||
|
||||
Reference in New Issue
Block a user