Skip to content

Commit 0de3410

Browse files
committed
docs: Publish a latest dir with latest version of docs
1 parent 14658e4 commit 0de3410

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/publish-docs.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ if [ ! -d $PAGES_DIR ] ; then
2020
fi
2121

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

2527
pushd $PAGES_DIR

0 commit comments

Comments
 (0)