开发者

How to include PDF in Sphinx documentation? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.

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 question

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.


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>`.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜