Skip to content
Open
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
9 changes: 6 additions & 3 deletions .github/workflows/release_and_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ jobs:
PYPI_REPO_URL: https://upload.pypi.org/legacy/
run: |
npx semantic-release
VERSION=$(git describe --tags --abbrev=0 --match "v*" 2>/dev/null || echo "no-version")
# Only publish docs when semantic-release tagged this exact commit.
# Using the newest historical tag here would overwrite immutable
# version docs after a non-release production push.
VERSION=$(git describe --tags --exact-match --match "v*" HEAD 2>/dev/null || echo "no-version")
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Released version: $VERSION"

Expand Down Expand Up @@ -117,7 +120,7 @@ jobs:
fi

if [[ "$v" == "latest" ]]; then
entry="{\"version\": \"latest\", \"url\": \"https://baker-laboratory.github.io/atomworks-dev/latest/index.html\", \"name\": \"latest\"}"
entry="{\"version\": \"latest\", \"url\": \"https://rosettacommons.github.io/atomworks/latest/index.html\", \"name\": \"latest\"}"
else
disp="${v#v}"
# Mark the newest stable version as preferred
Expand All @@ -126,7 +129,7 @@ jobs:
else
preferred="false"
fi
entry="{\"version\": \"$disp\", \"url\": \"https://baker-laboratory.github.io/atomworks-dev/$v/index.html\", \"name\": \"v$disp\", \"preferred\": $preferred}"
entry="{\"version\": \"$disp\", \"url\": \"https://rosettacommons.github.io/atomworks/$v/index.html\", \"name\": \"v$disp\", \"preferred\": $preferred}"
fi

switcher_content="$switcher_content$entry"
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
},
"navbar_start": ["navbar-logo", "version-switcher"],
"switcher": {
"json_url": "https://baker-laboratory.github.io/atomworks-dev/latest/_static/switcher.json",
"json_url": "https://rosettacommons.github.io/atomworks/latest/_static/switcher.json",
"version_match": switcher_version,
},
"favicons": [
Expand Down
Loading