123456789101112131415161718192021222324252627282930313233 |
- #!/bin/sh
- # Kludged documentation generator to support multiple versions.
- set -e
- CHECKOUT="$(mktemp -d)"
- OUTPUT="$(pwd)/dist/docs"
- npm run-script build
- cd dist
- echo "rojo.space" > CNAME
- rm -rf docs
- mkdir docs
- cp ../bin/docs-index.html docs/index.html
- git clone https://github.com/rojo-rbx/rojo.git "$CHECKOUT"
- cd "$CHECKOUT"
- echo "Building master"
- git checkout master
- mkdocs build --site-dir "$OUTPUT/latest"
- echo "Building 0.5.x"
- git checkout v0.5.x
- mkdocs build --site-dir "$OUTPUT/0.5.x"
- echo "Building 0.4.x"
- git checkout v0.4.x
- mkdocs build --site-dir "$OUTPUT/0.4.x"
|