I struggled with deploying our docs with Gitlab pages because we are using a monorepo. The Gitlab docs didn't help much since they were mostly focused towards folks that have their own instance of Gitlab.
After stumbling and a lot of trial and error I got the docs page to work with Gitlab Pages and added some nice features such as:
After stumbling and a lot of trial and error I got the docs page to work with Gitlab Pages and added some nice features such as:
- Deploy only when opening MRs to the production branch
- Set the deploy manually so you can decide if the docs should be deployed or not
Hope this article helps you if you are struggling like I was!
https://fabiorosado.dev/blog/setup-gitlab-pages/
https://fabiorosado.dev/blog/setup-gitlab-pages/