Documentation

This commit is contained in:
squidfunk 2021-12-27 13:50:27 +01:00
parent 8169e7f7c8
commit fb3f8806dd

View File

@ -146,10 +146,10 @@ contents:
image: python:latest image: python:latest
pages: pages:
stage: deploy stage: deploy
only: # (1)! only:
- master - master
- main - main
script: # (2)! script: # (1)!
- pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git - pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
- mkdocs build --site-dir public - mkdocs build --site-dir public
artifacts: artifacts:
@ -157,10 +157,7 @@ contents:
- public - public
``` ```
1. At some point, GitLab renamed `master` to `main`. If your default branch 1. Remember to set the `GH_TOKEN` environment variable to the value of your
is named `master`, you can safely remove `main`, vice versa.
2. Remember to set the `GH_TOKEN` environment variable to the value of your
[personal access token] when deploying [Insiders], which can be done [personal access token] when deploying [Insiders], which can be done
using [masked custom variables]. using [masked custom variables].