Skip to content

Commit ebb1e84

Browse files
authored
Update build-website.sh
1 parent db25d31 commit ebb1e84

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tools/scripts/build-website.sh

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22

33
set -ex
44

5-
VERSION_NUMBER=$1
5+
# VERSION_NUMBER=$1
66
if [[ "$VERSION_NUMBER" == "" ]]; then
7-
VERSION_NUMBER=master
7+
VERSION_NUMBER=40.0
88
fi
99

10-
BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
10+
#BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
1111

12-
echo "Updating online runner ..."
13-
python3 "$BASE_DIR/add_online_runner.py"
12+
#echo "Updating online runner ..."
13+
#python3 "$BASE_DIR/add_online_runner.py"
1414

1515
# Configure Git User, mike will create gh-pages branch
1616
git config user.name "nobody"
1717
git config user.email "nobody@localhost"
1818

19-
echo "Building docs for $VERSION_NUMBER"
20-
mike deploy "$VERSION_NUMBER" -F docs/mkdocs.yml -b gh-pages
19+
#echo "Building docs for $VERSION_NUMBER"
20+
#mike deploy "$VERSION_NUMBER" -F docs/mkdocs.yml -b gh-pages
2121

2222
git checkout gh-pages
2323

2424
#Update versions.json file
25-
aws s3 cp versions.json s3://updated-documentation-website/website/ .
25+
aws s3 cp s3://updated-documentation-website/website/versions.json .
2626
jq --arg v "$VERSION_NUMBER" '([{"version": $v, "title": $v, "aliases": []}] + .)' versions.json > temp.json && mv temp.json versions.json

0 commit comments

Comments
 (0)