mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-21 05:06:29 +00:00
25 lines
619 B
Bash
25 lines
619 B
Bash
#!/bin/sh
|
|
|
|
# Kludged documentation generator to support multiple versions.
|
|
# Make sure the `site` folder is a checkout of this repository's `gh-pages`
|
|
# branch.
|
|
# 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
|
|
|
|
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/0.4.x
|
|
|
|
echo "Building master"
|
|
git checkout master
|
|
mkdocs build --site-dir site/master
|
|
|
|
echo "Building 0.5.x"
|
|
mkdocs build --site-dir site/0.5.x
|
|
|
|
git checkout "$CURRENT_BRANCH" |