mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Update doc-deploy file
This commit is contained in:
parent
2230900c55
commit
058ff22604
2 changed files with 8 additions and 10 deletions
|
|
@ -31,7 +31,8 @@ help:
|
|||
@echo " $(cblue)clean$(cnorm) to remove remnants of a previous build"
|
||||
@echo " $(cblue)local$(cnorm) to build local html docs of the current branch (no multiversion)."
|
||||
@echo " $(cblue)mv-local$(cnorm) to build multiversion html docs, without deploying (req. local git commit)"
|
||||
@echo " $(cblue)release$(cnorm) to build and deploy multiversion docs online (req. commit and github push access)"
|
||||
@echo " $(cblue)deploy$(cnorm) to deploy previously built multiversion docs online (req. commit and github push access)"
|
||||
@echo " $(cblue)release$(cnorm) to build + deploy multiversion docs online (req. commit and github push access)"
|
||||
|
||||
|
||||
.PHONY: help Makefile
|
||||
|
|
@ -115,6 +116,6 @@ deploy:
|
|||
# build and prepare the docs for release
|
||||
release:
|
||||
make mv-local
|
||||
# make _mv-deploy
|
||||
make deploy
|
||||
@echo ""
|
||||
@echo "Deployment complete."
|
||||
|
|
|
|||
|
|
@ -18,20 +18,17 @@ git checkout gh-pages
|
|||
# remove all but the build dir
|
||||
ls -Q | grep -v build | xargs rm -Rf
|
||||
|
||||
cp -Rf build/html/versions/* .
|
||||
# docs/build is in .gitignore so will not be included
|
||||
git add .
|
||||
|
||||
cp -Rf build/html/* .
|
||||
# TODO automate this?
|
||||
ln -s 1.0-dev latest
|
||||
|
||||
git add docs/*
|
||||
# docs/build is in .gitignore so will not be included
|
||||
git add .
|
||||
|
||||
git commit -a -m "Updated HTML docs"
|
||||
|
||||
mv build docs/
|
||||
|
||||
echo "Skipping deployment"
|
||||
# git push origin gh-pages
|
||||
git push origin gh-pages
|
||||
|
||||
# get back to previous branch
|
||||
git checkout -
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue