We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d76c163 commit 3f7a96dCopy full SHA for 3f7a96d
readthedocs/templates/core/project_downloads.html
@@ -1,7 +1,7 @@
1
{% load i18n %}
2
3
{% for version, dict in version_data.items %}
4
- {% if dict.pdf %}
+ {% if dict.pdf and version.project.enable_pdf_build %}
5
<li class="module-item col-span">
6
<a class="module-item-title" href="{{ dict.pdf }}">
7
{% blocktrans %}
@@ -21,7 +21,7 @@
21
</li>
22
{% endif %}
23
24
- {% if dict.epub %}
+ {% if dict.epub and version.project.enable_epub_build %}
25
26
<a class="module-item-title" href="{{ dict.epub }}">
27
0 commit comments