Skip to content

Commit d1f6fd5

Browse files
committed
Generate index page in script
1 parent 2cb9815 commit d1f6fd5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

etc/generate-docs.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,18 @@ for module in "${modules[@]}"; do
3434
done
3535

3636
# switch to docs branch to commit and push
37+
git stash
3738
git checkout gh-pages
3839

3940
rm -rf docs/*
4041
cp -r docs-temp/* docs/
4142
rm -rf docs-temp
4243

4344
git add docs/
45+
46+
echo '<html><head><meta http-equiv="refresh" content="0; url=BSON/index.html" /></head></html>' > docs/index.html
47+
git add docs/index.html
48+
4449
git commit -m "${version} docs"
4550
git push
4651

0 commit comments

Comments
 (0)