A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://gitlab.com/gitlab-org/technical-writing/docs-gitlab-com/-/merge_requests/138 below:

Resolve "Implement offline search" (!138) · Merge requests · GitLab.org / Technical Writing

Skip to content Resolve "Implement offline search" What does this MR do and why?

This MR implements Pagefind - A new search engine for offline searches. It also replace the previous offline implementation using Lunr.js. search.md is also edited to reflect Pagefind information and local environment setup.

Screenshots, screen recordings, or links to review app
  1. MAIN PAGE SEARCH:

  1. AFTER SEARCH: note - this is showing 17.3 because locally I made SEARCH_BACKEND to pagefind. Ideally this should be ONLY for archive versions.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Configure a local GitLab Docs environment: https://gitlab.com/gitlab-org/technical-writing-group/gitlab-docs-hugo/-/blob/main/doc/setup.md.
  2. Set environment variable SEARCH_BACKEND to "pagefind" by running export SEARCH_BACKEND=pagefind in terminal.
  3. Run make clean to ensure new folder called static and public folder are cleared out.
  4. Run make view as normal.
Merge request acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Closes #33 (closed)

Edited Jul 30, 2024 by Hiru Fernando

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4