mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Multiple versions of the docs
This commit is contained in:
parent
54b8a1aea5
commit
95866d0f2e
2 changed files with 31 additions and 0 deletions
25
generate-docs
Normal file
25
generate-docs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#!/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, run `generate-docs` 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
|
||||
mkdocs build --site-dir site
|
||||
mkdocs build --site-dir site/0.4.x
|
||||
|
||||
git checkout master
|
||||
|
||||
echo "Building master"
|
||||
mkdocs build --site-dir site/master
|
||||
|
||||
echo "Building 0.5.x"
|
||||
mkdocs build --site-dir site/0.5.x
|
||||
|
||||
git checkout "$CURRENT_BRANCH"
|
||||
Loading…
Add table
Add a link
Reference in a new issue