nginx_pdf_
.. _nginx_pdf: Mastering Nginx.pdf
Mastering Nginx.pdf is a local pdf file in the some directory with the rst file. I want if click the Hyperlink , Browser would open the pdf file, but this can not work. how can I make this happen
Just make the _downloads
folder in your project, and put the file there. Then call it from the rst file:
:download:`_downloads/Mastering Nginx.pdf`
and it should be working.
Replace the space in the name of the pdf file with an underscore after this it works:
nginx_pdf_
.. _nginx_pdf: Mastering_Nginx.pdf
Build it with:
rst2html test.rst > test.html
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments