diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 7467105c57..ba49002864 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -28,3 +28,4 @@ jobs: run : ./docs/_utils/deploy.sh env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + LATEST_VERSION: 3.22.0-scylla diff --git a/docs/_utils/deploy.sh b/docs/_utils/deploy.sh index e912d303d8..63be58f0a2 100755 --- a/docs/_utils/deploy.sh +++ b/docs/_utils/deploy.sh @@ -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 diff --git a/docs/_utils/redirect.html b/docs/_utils/redirect.html deleted file mode 100644 index 5731291d04..0000000000 --- a/docs/_utils/redirect.html +++ /dev/null @@ -1,9 +0,0 @@ - - - - Redirecting to Driver - - - - - diff --git a/docs/_utils/redirect.sh b/docs/_utils/redirect.sh new file mode 100755 index 0000000000..e65b62cddc --- /dev/null +++ b/docs/_utils/redirect.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +latest=${LATEST_VERSION:='master'} + +cat <<- _EOF_ + + + + Redirecting to Driver + + + + + +_EOF_ diff --git a/docs/conf.py b/docs/conf.py index f24aaa377f..3d9adbfc67 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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' # 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