@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / 79d406e918
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 16, 22:00 UTC

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

Simon Mo committed Jul 5, 2024 at 12:44 UTC 79d406e9183aa12cdef6f1876eb9a15385662587
1 file changed +4 -1
docs/source/conf.py
+4 -1
@@ -75,7 +75,10 @@ if READTHEDOCS_VERSION_TYPE == "tag":
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)
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)
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,