Hi,
What version of Sphinx do you use? The latest Sphinx uses `download`
attribute to the download link in HTML5 output. So modern browsers
will start downloading the target file.
Thanks,
Takeshi KOMIYA
2020年4月24日(金) 23:45 Žygimantas Šalkus <
z.sa...@gmail.com>:
>
> Hello, I have an issue with :download: role. Whenever I add any file that browser is able to display, e.x. json, pdf, browser displays it instead of downloading it to my computer. Is there a way to force file download, so file wouldn't be opened in a new tab?
>
> --
> You received this message because you are subscribed to the Google Groups "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
sphinx-users...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/sphinx-users/3c3a67df-4118-4237-aebd-b0e41430553c%40googlegroups.com.