How to reference download files in template

11 views
Skip to first unread message

Georg Müller

unread,
Jul 25, 2019, 2:41:00 PM7/25/19
to sphinx-users
Hello,

I want to refence a download file (pdf) from the side bar for convenience.

This file is also referenced on a document using the :download: syntax.

Before sphinx 1.8.0, it was possible, because the download link was stable ( _downloads/foo.pdf).
I just added a custom template to the html_sidebars map in my conf.py and referenced it statically.

Now the link includes the hash of the original source path (and that may change depending on the builder).

I cannot reference a download file using pathto() and have not found anything like this in the documentation.

Any suggestions?

Best regards,
Georg

Reply all
Reply to author
Forward
0 new messages