[Docs] Remove the older supported docs section (#5301)

This commit is contained in:
Adarsh Shirawalmath
2025-04-12 00:00:18 +05:30
committed by GitHub
parent 80aa8ca84e
commit a0a9f6d64f
3 changed files with 3 additions and 147 deletions

View File

@@ -14,7 +14,9 @@ def update_wheel_index(cuda_version="118"):
for path in sorted(pathlib.Path("sgl-kernel/dist").glob("*.whl")):
with open(path, "rb") as f:
sha256 = hashlib.sha256(f.read()).hexdigest()
ver = re.findall(r"sgl_kernel-([0-9.]+(?:\.post[0-9]+)?)(?:\+cu[0-9]+)?-", path.name)[0]
ver = re.findall(
r"sgl_kernel-([0-9.]+(?:\.post[0-9]+)?)(?:\+cu[0-9]+)?-", path.name
)[0]
full_url = f"{base_url}/v{ver}/{path.name}#sha256={sha256}"
with (index_dir / "index.html").open("a") as f:
f.write(f'<a href="{full_url}">{path.name}</a><br>\n')