mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-25 07:06:12 +00:00
Update docs and generator to be even smarter
This commit is contained in:
@@ -2,9 +2,9 @@ This is the documentation home for Rojo.
|
|||||||
|
|
||||||
Available versions of these docs:
|
Available versions of these docs:
|
||||||
|
|
||||||
|
* [Latest version (currently 0.5.x)](https://lpghatguy.github.io/rojo)
|
||||||
* [0.5.x](https://lpghatguy.github.io/rojo/0.5.x)
|
* [0.5.x](https://lpghatguy.github.io/rojo/0.5.x)
|
||||||
* [0.4.x](https://lpghatguy.github.io/rojo/0.4.x)
|
* [0.4.x](https://lpghatguy.github.io/rojo/0.4.x)
|
||||||
* [`master` branch](https://lpghatguy.github.io/rojo/master)
|
|
||||||
|
|
||||||
**Rojo** is a flexible multi-tool designed for creating robust Roblox projects.
|
**Rojo** is a flexible multi-tool designed for creating robust Roblox projects.
|
||||||
|
|
||||||
|
|||||||
@@ -10,12 +10,22 @@ REMOTE=$(git remote get-url origin)
|
|||||||
CHECKOUT="$(mktemp -d)"
|
CHECKOUT="$(mktemp -d)"
|
||||||
OUTPUT="$(pwd)/site"
|
OUTPUT="$(pwd)/site"
|
||||||
|
|
||||||
|
if [ -d site ]
|
||||||
|
then
|
||||||
|
cd site
|
||||||
|
git pull
|
||||||
|
else
|
||||||
|
git clone "$REMOTE" site
|
||||||
|
cd site
|
||||||
|
git checkout gh-pages
|
||||||
|
fi
|
||||||
|
|
||||||
git clone "$REMOTE" "$CHECKOUT"
|
git clone "$REMOTE" "$CHECKOUT"
|
||||||
cd "$CHECKOUT"
|
cd "$CHECKOUT"
|
||||||
|
|
||||||
echo "Building master"
|
echo "Building master"
|
||||||
git checkout master
|
git checkout master
|
||||||
mkdocs build --site-dir "$OUTPUT/master"
|
mkdocs build --site-dir "$OUTPUT"
|
||||||
|
|
||||||
echo "Building 0.5.x"
|
echo "Building 0.5.x"
|
||||||
mkdocs build --site-dir "$OUTPUT/0.5.x"
|
mkdocs build --site-dir "$OUTPUT/0.5.x"
|
||||||
|
|||||||
Reference in New Issue
Block a user