mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
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
|
||||
evennia.bat
|
||||
twistd.bat
|
||||
|
||||
# never commit docs/build
|
||||
docs/build
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue