Tip
Setup the Python virtualenv first. Dependencies are listed in requirements.txt
Type below command in Terminal then press Enter:
In a nutshell: make use of git post-commit
hook to automate the deploying process.
- Make necessary modifications to
post-commit.sh <_static/downloads/post-commit.sh>
and - copy the modified version to
.git/hooks/post-commit
, then chmod u+x .git/hooks/post-commit
to make it executable. After this, whenevergit add -A && git commit -m 'updates'
has been used to updatemaster
branch,gh-pages
branch will be updated automatically.
Warning
git pull
will not update git hooks. Hence every time after cloning a new copy, hooks need to be set up manually.
Note
You can also host your docs in readthedocs.
- Advantage: auto update docs site by git hook without your configuration.
- Disadvantages: readthedocs will put ads in your docs page and the contents delivering speed seems slower than github.