Publish with [GitBook](https://www.gitbook.com/) in [GitLab](https://about.gitlab.com/)
If you publish it with a CI it takes 30 minutes to build a page with 4 documents.
If you push an already compile web it takes less than a minute.
More info about static websites in Gitlab
Create a CI for GitLab as .gitlab-ci.yml
inside the repository.
image: alpine:latest
pages:
stage: deploy
script:
- echo 'Nothing to do...'
artifacts:
paths:
- public
only:
- master
Remove old builds.
rm -r public/
Build.
gitbook build . public
Remove some garbage.
rm public/{.gitignore,.gitlab-ci.yml}
rm -r _book/
Push to Gitlab.
git add .
git commit -m "Update"
git push origin master