Publish with GitBook in GitLab
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.
Build.
Remove some garbage.
Push to Gitlab.