Stop building documentation root, only version-specific docs

This commit is contained in:
Lucien Greathouse
2019-01-10 11:15:11 -08:00
parent 9ac001bd3e
commit d52ecaa050
3 changed files with 7 additions and 8 deletions

View File

@@ -3,7 +3,8 @@
# Kludged documentation generator to support multiple versions.
# Make sure the `site` folder is a checkout of this repository's `gh-pages`
# branch.
# To use, run `generate-docs` in the root of the repository.
# To use, copy this file to `generate-docs.run` so that Git will leave it alone,
# then run `generate-docs.run` in the root of the repository.
set -e
@@ -12,12 +13,10 @@ CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
echo "Building 0.4.x"
git checkout v0.4.x
git pull
mkdocs build --site-dir site
mkdocs build --site-dir site/0.4.x
git checkout master
echo "Building master"
git checkout master
mkdocs build --site-dir site/master
echo "Building 0.5.x"