Skip to content

Commit

Permalink
docs: Publish a latest dir with latest version of docs
Browse files Browse the repository at this point in the history
  • Loading branch information
trodrigues committed Feb 25, 2016
1 parent 14658e4 commit 0de3410
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/publish-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ if [ ! -d $PAGES_DIR ] ; then
fi

cp -r $DOCS_DIR/* $PAGES_DIR
rm -rf $PAGES_DIR/contentful/latest
cp -r $DOCS_DIR/contentful/$VERSION $PAGES_DIR/contentful/latest
echo "<meta http-equiv=\"refresh\" content=\"0; url=https://contentful.github.io/contentful.js/contentful/${VERSION}/\">" > $PAGES_DIR/index.html

pushd $PAGES_DIR
Expand Down

0 comments on commit 0de3410

Please sign in to comment.