Unverified Commit 79d406e9 authored by Simon Mo's avatar Simon Mo Committed by GitHub
Browse files

[Docs] Fix readthedocs for tag build (#6158)

parent abad5746
...@@ -75,6 +75,9 @@ if READTHEDOCS_VERSION_TYPE == "tag": ...@@ -75,6 +75,9 @@ if READTHEDOCS_VERSION_TYPE == "tag":
# remove the warning banner if the version is a tagged release # remove the warning banner if the version is a tagged release
header_file = os.path.join(os.path.dirname(__file__), header_file = os.path.join(os.path.dirname(__file__),
"_templates/sections/header.html") "_templates/sections/header.html")
# The file might be removed already if the build is triggered multiple times
# (readthedocs build both HTML and PDF versions separately)
if os.path.exists(header_file):
os.remove(header_file) os.remove(header_file)
# Add any paths that contain custom static files (such as style sheets) here, # Add any paths that contain custom static files (such as style sheets) here,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment