Skip to content

Commit c6c2f43

Browse files
committedJan 24, 2025··
Add a redirect with the package name
This is done to support existing links e.g. from PyPI that are not yet pointing to 'index.html' but to a specific file with the package name.
1 parent 0c1506c commit c6c2f43

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎scripts/multiversion-pdoc-wrapper

+3
Original file line numberDiff line numberDiff line change
@@ -199,5 +199,8 @@ echo "<meta
199199
url='./${LATEST_STABLE}/index.html'\"
200200
/>" > "$INDEX_REDIRECT"
201201
echo "- $INDEX_REDIRECT"
202+
PKGNAME_REDIRECT="$DOCS_BASEDIR/$PACKAGENAME/$PACKAGENAME.html"
203+
cp "$INDEX_REDIRECT" "$PKGNAME_REDIRECT"
204+
echo "- $PKGNAME_REDIRECT"
202205

203206
echo -e "✅ Done.\n"

0 commit comments

Comments
 (0)
Please sign in to comment.