Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to include PDF in Sphinx documentation? [closed]

I have a PDF that has some in depth explanation for an example in the Sphinx documentation for a package I have. Is there a way to easily include the PDF in my project (and have it copy over when I build the docs)? I tried linking to it with :doc: but this did not copy it over.

like image 786
John Salvatier Avatar asked Sep 01 '10 05:09

John Salvatier


1 Answers

Use the :download: text role to bring in an arbitrary additional file. So in your case you might do something like this:

For an in-depth explanation, please see :download:`A Detailed Example <some_extra_file.pdf>`.
like image 181
ddbeck Avatar answered Oct 30 '22 15:10

ddbeck