Skip to content

Commit 79d406e

Browse files
authored
[Docs] Fix readthedocs for tag build (vllm-project#6158)
1 parent abad574 commit 79d406e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/source/conf.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@
7575
# remove the warning banner if the version is a tagged release
7676
header_file = os.path.join(os.path.dirname(__file__),
7777
"_templates/sections/header.html")
78-
os.remove(header_file)
78+
# 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)
7982

8083
# Add any paths that contain custom static files (such as style sheets) here,
8184
# relative to this directory. They are copied after the builtin static files,

0 commit comments

Comments
 (0)