Skip to content

Commit a3ffcfd

Browse files
Disabling reporting on PDF builds if the build has been disabled by Project.sphinx_enable_pdf_build.
1 parent 4997755 commit a3ffcfd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

readthedocs/projects/tasks.py

+2
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,8 @@ def record_build(api, record, build, results, state, start_time=None):
579579
def record_pdf(api, record, results, state, version):
580580
if not record or 'sphinx' not in version.project.documentation_type:
581581
return None
582+
if not version.project.sphinx_enable_pdf_build:
583+
return None
582584
try:
583585
if 'pdf' in results:
584586
pdf_exit = results['pdf'][0]

0 commit comments

Comments
 (0)