We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abad574 commit 79d406eCopy full SHA for 79d406e
docs/source/conf.py
@@ -75,7 +75,10 @@
75
# remove the warning banner if the version is a tagged release
76
header_file = os.path.join(os.path.dirname(__file__),
77
"_templates/sections/header.html")
78
- os.remove(header_file)
+ # The file might be removed already if the build is triggered multiple times
79
+ # (readthedocs build both HTML and PDF versions separately)
80
+ if os.path.exists(header_file):
81
+ os.remove(header_file)
82
83
# Add any paths that contain custom static files (such as style sheets) here,
84
# relative to this directory. They are copied after the builtin static files,
0 commit comments