Changes to deploy mechanism

This commit is contained in:
Griatch 2020-06-13 10:43:28 +02:00
parent f2dc22b22f
commit 269fc3b1bc
3 changed files with 13 additions and 5 deletions

3
.gitignore vendored
View file

@ -47,3 +47,6 @@ nosetests.xml
# Windows files generated during setup
evennia.bat
twistd.bat
# never commit docs/build
docs/build

View file

@ -11,16 +11,21 @@ if [ -n "$(git status --untracked-files=no --porcelain)" ]; then
fi
git checkout gh-pages
# at this point we should be inside the docs/ folder of the gh-pages branch,
# with the build/ directory available since this is not in git
rm -Rf versions
mv build/html/versions .
git add versions
# remove all but the build dir
ls -Q | grep -v build | xargs rm -Rf
mv build/html/versions/* .
# docs/build is in .gitignore so will not be included
git add .
git commit -a -m "Updated HTML docs"
git push origin gh-pages
# get back to previous branch
git checkout -
git checkout -
echo "Deployed to https://evennia.github.io/evennia-docs."

View file

@ -142,7 +142,7 @@ html_theme = 'alabaster'
smv_tag_whitelist = r"^$"
# smv_branch_whitelist = r"^static-file-docs$|^static-file-dev$"
smv_branch_whitelist = r"^master$|^v1.0$"
smv_outputdir_format = "versions" + sep + "{config.release}"
smv_outputdir_format = "{config.release}"
# recommonmark