teleport/docs/run.sh

14 lines
378 B
Bash
Raw Normal View History

#!/bin/bash
# IMPORTANT! To add a new version, say 8.1
# * copy 2.3.yaml to 8.1.yaml
# * edit 8.1.yaml
# * edit theme/base.html and update docVersions variable
2018-05-03 00:44:18 +00:00
PORT=6600
cd "$(dirname $0)" || exit
./build.sh || exit $?
echo -e "\n\n----> LIVE EDIT HERE: http://localhost:$PORT/"
2018-05-03 00:44:18 +00:00
mkdocs serve --livereload --config-file=latest.yaml --dev-addr=0.0.0.0:$PORT & wait