Publish to GitLab Pages
Publish the viewer to GitLab Pages from GitLab CI, checked and rebuilt on every push to the default branch.
Before you start
Section titled “Before you start”- The Workspace is in a GitLab project, and
archidocs checkpasses. See the Quick start. - GitLab Pages is available on the project.
1. Include the template
Section titled “1. Include the template”Add the Archidocs GitLab CI template to .gitlab-ci.yml:
include: - remote: https://raw.githubusercontent.com/chalharb/archidocs/v1/templates/gitlab/archidocs.gitlab-ci.yml inputs: images: trueIt adds a pages job, for pushes to the default branch and tags, and an archidocs-preview job for merge requests. Every input, such as working-directory, keep and version, is in the GitLab template reference.
2. Push
Section titled “2. Push”Commit .gitlab-ci.yml and push it to the default branch.
Check it worked
Section titled “Check it worked”Open the pipeline in the project’s Build › Pipelines. When the pages job succeeds, Deploy › Pages shows the site’s URL. Open it: the viewer starts on the C1 Landscape.
If it didn’t
Section titled “If it didn’t”If archidocs check fails, the pages job stops and publishes nothing, so the last good site stays up. The job’s log shows the file, the line and the rule, with a link to the rule’s page. Fix it and push again.
If the viewer shows only the latest Revision, the job’s clone is shallow. The template sets GIT_DEPTH: 0; check that your .gitlab-ci.yml doesn’t override it.
Related
Section titled “Related”- Revisions and history, including the history cache the template keeps
- GitLab template reference
- Preview pull requests
Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.