Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/pages.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -28,3 +28,4 @@ jobs:
run : ./docs/_utils/deploy.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LATEST_VERSION: 3.22.0-scylla
4 changes: 2 additions & 2 deletions docs/_utils/deploy.sh
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,8 +3,8 @@
# Clone repo
git clone "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" --branch gh-pages --single-branch gh-pages
cp -r docs/_build/dirhtml/* gh-pages
# Redirect index to master
cp docs/_utils/redirect.html gh-pages/index.html
# Redirect index to latest version
./docs/_utils/redirect.sh > gh-pages/index.html
# Deploy
cd gh-pages
touch .nojekyll
Expand Down
9 changes: 0 additions & 9 deletions docs/_utils/redirect.html

This file was deleted.

15 changes: 15 additions & 0 deletions docs/_utils/redirect.sh
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
#!/bin/bash

latest=${LATEST_VERSION:='master'}

cat <<- _EOF_
<!DOCTYPE html>
<html>
<head>
<title>Redirecting to Driver</title>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; URL=./${LATEST_VERSION}/index.html">
<link rel="canonical" href="./${LATEST_VERSION}/index.html">
</head>
</html>
_EOF_
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -231,7 +231,7 @@
# Whitelist pattern for tags (set to None to ignore all tags)
smv_tag_whitelist = r'\b(3.22.0-scylla|3.21.0-scylla)\b'
Comment thread
fruch marked this conversation as resolved.
# Whitelist pattern for branches (set to None to ignore all branches)
smv_branch_whitelist = r"^master$"
smv_branch_whitelist = "None"
# Whitelist pattern for remotes (set to None to use local branches only)
smv_remote_whitelist = r"^origin$"
# Pattern for released versions
Expand Down