Skip to content

Commit

Permalink
remove old docs that no longer run with new layout
Browse files Browse the repository at this point in the history
  • Loading branch information
vektah committed Feb 17, 2020
1 parent 556c848 commit 199cfed
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,10 @@ HOST=https://gqlgen.com

VERSIONS_ARRAY=(
'v0.11.0'
'master'
'origin/master'
'v0.10.2'
'v0.9.3'
'v0.8.3'
'v0.7.2'
'v0.6.0'
'v0.5.1'
'v0.4.4'
)

joinVersions() {
Expand All @@ -31,6 +27,10 @@ function version { echo "$@" | gawk -F. '{ printf("%03d%03d%03d\n", $1,$2,$3); }
rebuild() {
VERSION_STRING=$(joinVersions)
export CURRENT_VERSION=${1}
if [[ $CURRENT_VERSION == 'origin/master' ]] ; then
CURRENT_VERSION="master"
fi

export VERSIONS=${VERSION_STRING}

hugo --quiet --destination="public/$CURRENT_VERSION" --baseURL="$HOST/$CURRENT_VERSION/"
Expand Down

0 comments on commit 199cfed

Please sign in to comment.