Skip to content

Create a CI job to build a lunr.js version of the site with each release

For &8937 (closed).

  • Update the .gitlab-ci.yml file to add one more job and build the archived version pushed to a new registry folder (registry.gitlab.com/gitlab-org/gitlab-docs/archives).
  • Find out how to make use of the index script make build-lunr-index.

How different search builds work

If ALGOLIA_SEARCH=true, Nanoc builds with Algolia in the page templates.

We define that variable in our CI configuration:

And with a fallback in Nanoc code here:

Edited by Achilleas Pipinellis