Remove old docs scripts and update links to new repo

This commit is contained in:
Lucien Greathouse
2019-07-02 15:35:29 -07:00
parent aa3e43207f
commit 714fb10fac
4 changed files with 66 additions and 112 deletions

View File

@@ -1,10 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>redirect</title>
<meta http-equiv="refresh" content="0;url=/docs/latest" />
</head>
<body>
</body>
</html>

View File

@@ -1,36 +0,0 @@
#!/bin/sh
# Kludged documentation generator to support multiple versions.
set -e
REMOTE=$(git remote get-url origin)
CHECKOUT="$(mktemp -d)"
OUTPUT="$(pwd)/site/docs"
if [ -d site ]
then
cd site
git pull
else
git clone https://github.com/rojo-rbx/rojo-rbx.github.io site
cd site
fi
rm -rf docs
mkdir docs
cp ../bin/docs-index.html docs/index.html
git clone "$REMOTE" "$CHECKOUT"
cd "$CHECKOUT"
echo "Building master"
git checkout master
mkdocs build --site-dir "$OUTPUT/latest"
echo "Building 0.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"