How to include PDF in Sphinx documentation? [closed]
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
开发者_如何学运维Closed 4 years ago.
Improve this questionI 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.
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>`.
精彩评论