This project explains how to manipulate a Git repository within Travis CI to publish a static documentation site build with mkdocs on GitHub Page.
mkdocs new my-folder
cd my-folder
# Display in a brawser
mkdocs serve
git init
echo "site/" > .gitignore
# Build static files
mkdocs build
mkdocs build --clean
# Deploy GitHub Pages
mkdocs gh-deploy --clean
Following commands doesn't work:
git remote add docs ${GIT_REPO}
mkdocs gh-deploy -c -m $REVISION -b master -r docs
And fail without errors...