Add docs/ dir
This commit is contained in:
parent
6c3a7367ab
commit
f5bf1d6545
13 changed files with 439 additions and 0 deletions
26
docs/deploy.sh
Normal file
26
docs/deploy.sh
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#
|
||||
# deploy to github
|
||||
#
|
||||
# This copies the recently built files from build/html into the github-gh branch. Note that
|
||||
# it's important that build/ must not be committed to git!
|
||||
#
|
||||
|
||||
if [ -n "$(git status --untracked-files=no --porcelain)" ]; then
|
||||
echo "There are uncommitted changes. Make sure to commit everything in your current branch first."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git checkout gh-pages
|
||||
|
||||
rm -Rf versions
|
||||
mv build/html/versions .
|
||||
git add versions
|
||||
|
||||
git commit -a -m "Updated HTML docs"
|
||||
git push origin gh-pages
|
||||
|
||||
# get back to previous branch
|
||||
|
||||
git checkout -
|
||||
|
||||
echo "Deployed to https://evennia.github.io/evennia-docs."
|
||||
Loading…
Add table
Add a link
Reference in a new issue