Skip to content

Commit 2e23615

Browse files
committed
Attempt to make wheel index PEP 503 compliant
1 parent af4640b commit 2e23615

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

docs/index.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
<!DOCTYPE html>
22
<html>
33
<body>
4-
<a href="cu116">CUDA 11.6</a><br/>
5-
<a href="cu117">CUDA 11.7</a><br/>
6-
<a href="cu118">CUDA 11.8</a><br/>
7-
<a href="cu120">CUDA 12.0</a><br/>
8-
<a href="cu121">CUDA 12.1</a><br/>
4+
<a href="llama-cpp-python.html">llama-cpp-python</a>
95
</body>
106
</html>

docs/llama-cpp-python.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<body>
4+
<a href="cu116.html">CUDA 11.6</a><br/>
5+
<a href="cu117.html">CUDA 11.7</a><br/>
6+
<a href="cu118.html">CUDA 11.8</a><br/>
7+
<a href="cu120.html">CUDA 12.0</a><br/>
8+
<a href="cu121.html">CUDA 12.1</a><br/>
9+
</body>
10+
</html>

generate-html.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ $packageVersions = "0.1.62","0.1.66"
66
$pythonVersions = "3.7","3.8","3.9","3.10","3.11"
77
$supportedSystems = 'linux_x86_64','win_amd64'
88
$wheelSource = 'https://github.com/jllllll/llama-cpp-python-cuBLAS-wheels/releases/download/wheels'
9-
$indexName = 'index'
109

1110

1211
$indexContent = "<!DOCTYPE html>`n<html>`n <body>`n "
@@ -28,9 +27,10 @@ ForEach ($cudaVersion in $cudaVersions)
2827
}
2928
$cuContent += "`n "
3029
}
31-
$indexContent += "<a href=`"cu$cu`">CUDA $cudaVersion</a><br/>`n "
30+
$indexContent += "<a href=`"cu$cu.html`">CUDA $cudaVersion</a><br/>`n "
3231
$cuContent.TrimEnd() + "`n </body>`n</html>" > $(Join-Path $destinationDir "cu$cu.html")
3332
}
34-
$indexContent.TrimEnd() + "`n </body>`n</html>" > $(Join-Path $destinationDir "$indexName.html")
33+
$indexContent.TrimEnd() + "`n </body>`n</html>" > $(Join-Path $destinationDir "llama-cpp-python.html")
34+
"<!DOCTYPE html>`n<html>`n <body>`n <a href=`"llama-cpp-python.html`">llama-cpp-python</a>`n </body>`n</html>" > $(Join-Path $destinationDir "index.html")
3535

3636
pause

0 commit comments

Comments
 (0)