Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
c016047e
Unverified
Commit
c016047e
authored
Jun 10, 2025
by
Harry Mellor
Committed by
GitHub
Jun 09, 2025
Browse files
Fix docs/mkdocs/hooks/remove_announcement.py (#19382)
parent
9af6d22e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
docs/mkdocs/hooks/remove_announcement.py
docs/mkdocs/hooks/remove_announcement.py
+4
-4
No files found.
docs/mkdocs/hooks/remove_announcement.py
View file @
c016047e
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
import
os
from
pathlib
import
Path
from
typing
import
Literal
...
...
@@ -8,10 +9,9 @@ def on_startup(command: Literal["build", "gh-deploy", "serve"], dirty: bool):
# see https://docs.readthedocs.io/en/stable/reference/environment-variables.html # noqa
if
os
.
getenv
(
'READTHEDOCS_VERSION_TYPE'
)
==
"tag"
:
# remove the warning banner if the version is a tagged release
docs_dir
=
os
.
path
.
dirname
(
__file__
)
announcement_path
=
os
.
path
.
join
(
docs_dir
,
"mkdocs/overrides/main.html"
)
mkdocs_dir
=
Path
(
__file__
).
parent
.
parent
announcement_path
=
mkdocs_dir
/
"overrides/main.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
(
announcement_path
):
if
announcement_path
.
exists
(
):
os
.
remove
(
announcement_path
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment