Changes to deploy mechanism
This commit is contained in:
parent
f2dc22b22f
commit
269fc3b1bc
3 changed files with 13 additions and 5 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -47,3 +47,6 @@ nosetests.xml
|
||||||
# Windows files generated during setup
|
# Windows files generated during setup
|
||||||
evennia.bat
|
evennia.bat
|
||||||
twistd.bat
|
twistd.bat
|
||||||
|
|
||||||
|
# never commit docs/build
|
||||||
|
docs/build
|
||||||
|
|
|
||||||
|
|
@ -11,16 +11,21 @@ if [ -n "$(git status --untracked-files=no --porcelain)" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git checkout gh-pages
|
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
|
# remove all but the build dir
|
||||||
mv build/html/versions .
|
ls -Q | grep -v build | xargs rm -Rf
|
||||||
git add versions
|
|
||||||
|
mv build/html/versions/* .
|
||||||
|
# docs/build is in .gitignore so will not be included
|
||||||
|
git add .
|
||||||
|
|
||||||
git commit -a -m "Updated HTML docs"
|
git commit -a -m "Updated HTML docs"
|
||||||
git push origin gh-pages
|
git push origin gh-pages
|
||||||
|
|
||||||
# get back to previous branch
|
# get back to previous branch
|
||||||
|
|
||||||
git checkout -
|
git checkout -
|
||||||
|
|
||||||
echo "Deployed to https://evennia.github.io/evennia-docs."
|
echo "Deployed to https://evennia.github.io/evennia-docs."
|
||||||
|
|
|
||||||
|
|
@ -142,7 +142,7 @@ html_theme = 'alabaster'
|
||||||
smv_tag_whitelist = r"^$"
|
smv_tag_whitelist = r"^$"
|
||||||
# smv_branch_whitelist = r"^static-file-docs$|^static-file-dev$"
|
# smv_branch_whitelist = r"^static-file-docs$|^static-file-dev$"
|
||||||
smv_branch_whitelist = r"^master$|^v1.0$"
|
smv_branch_whitelist = r"^master$|^v1.0$"
|
||||||
smv_outputdir_format = "versions" + sep + "{config.release}"
|
smv_outputdir_format = "{config.release}"
|
||||||
|
|
||||||
|
|
||||||
# recommonmark
|
# recommonmark
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue