mirror of https://github.com/istio/istio.io.git
Another fix for archives.
This commit is contained in:
parent
e37462cf17
commit
527312311f
|
|
@ -3,6 +3,8 @@
|
||||||
# Build the archive site
|
# Build the archive site
|
||||||
#
|
#
|
||||||
|
|
||||||
|
BASEURL="$1"
|
||||||
|
|
||||||
# List of name:tagOrBranch
|
# List of name:tagOrBranch
|
||||||
TOBUILD=(
|
TOBUILD=(
|
||||||
v1.1:release-1.1
|
v1.1:release-1.1
|
||||||
|
|
@ -37,11 +39,12 @@ for rel in "${TOBUILD[@]}"
|
||||||
do
|
do
|
||||||
NAME=$(echo $rel | cut -d : -f 1)
|
NAME=$(echo $rel | cut -d : -f 1)
|
||||||
TAG=$(echo $rel | cut -d : -f 2)
|
TAG=$(echo $rel | cut -d : -f 2)
|
||||||
BASEURL=$(echo /$NAME)
|
URL=$(echo ${BASEURL}/${NAME})
|
||||||
echo "### Building '$NAME' from $TAG for $BASEURL"
|
|
||||||
|
echo "### Building '${NAME}' from ${TAG} for ${URL}"
|
||||||
git checkout ${TAG}
|
git checkout ${TAG}
|
||||||
|
|
||||||
scripts/gen_site.sh ${BASEURL}
|
scripts/gen_site.sh ${URL}
|
||||||
|
|
||||||
mv public ${TMP}/archive/${NAME}
|
mv public ${TMP}/archive/${NAME}
|
||||||
echo "- name: \"${NAME}\"" >> ${TMP}/archives.yml
|
echo "- name: \"${NAME}\"" >> ${TMP}/archives.yml
|
||||||
|
|
@ -53,9 +56,11 @@ for rel in "${TOBUILD_JEKYLL[@]}"
|
||||||
do
|
do
|
||||||
NAME=$(echo $rel | cut -d : -f 1)
|
NAME=$(echo $rel | cut -d : -f 1)
|
||||||
TAG=$(echo $rel | cut -d : -f 2)
|
TAG=$(echo $rel | cut -d : -f 2)
|
||||||
echo "### Building '$NAME' from $TAG"
|
URL=$(echo ${BASEURL}/${NAME})
|
||||||
|
|
||||||
|
echo "### Building '${NAME}' from ${TAG} for ${URL}"
|
||||||
git checkout ${TAG}
|
git checkout ${TAG}
|
||||||
echo "baseurl: /$NAME" > config_override.yml
|
echo "baseurl: ${URL}" > config_override.yml
|
||||||
|
|
||||||
bundle install
|
bundle install
|
||||||
bundle exec jekyll build --config _config.yml,config_override.yml
|
bundle exec jekyll build --config _config.yml,config_override.yml
|
||||||
|
|
@ -79,7 +84,7 @@ sed -i 's/archive_landing: false/archive_landing: true/g' data/args.yml
|
||||||
cp ${TMP}/archives.yml data
|
cp ${TMP}/archives.yml data
|
||||||
|
|
||||||
scripts/build_site.sh
|
scripts/build_site.sh
|
||||||
scripts/gen_site.sh "https://archive.istio.io"
|
scripts/gen_site.sh "$1"
|
||||||
|
|
||||||
mv public/* ${TMP}/archive
|
mv public/* ${TMP}/archive
|
||||||
rm -fr ${GITDIR} public
|
rm -fr ${GITDIR} public
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue