Skip to content

Commit

Permalink
use current layout to build old doc content
Browse files Browse the repository at this point in the history
  • Loading branch information
vektah committed Feb 17, 2020
1 parent 4c38b8b commit 282100c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ RESET='\033[0m'
HOST=https://gqlgen.com

VERSIONS_ARRAY=(
'v0.10.2'
'v0.11.0'
'master'
'v0.10.2'
'v0.9.3'
'v0.8.3'
'v0.7.2'
Expand Down Expand Up @@ -49,9 +50,11 @@ git fetch origin --tags

for version in "${VERSIONS_ARRAY[@]}" ; do
echo -e "$(date) $GREEN Updating docs for $version.$RESET"
git checkout $version
rm -rf docs/content
git checkout $version -- docs/content
rebuild "$version"
done

git checkout -q "$currentBranch"
rm -rf docs/content
git checkout "$currentBranch" -- docs/content

0 comments on commit 282100c

Please sign in to comment.