Gitlab hero border pattern left svg Gitlab hero border pattern right svg

Searching The GitLab Website like a pro

Challenge

At GitLab, we're prolific at documenting what we do in the handbook, the website, and in GitLab documentation. This may make it difficult to find specific pieces of content.

Basic Solution - "search site:"

Google already indexes all our public facing pages and there is a search modifier google offers that will help.

Search for a specific site
Put "site:" in front of a site or domain. For example, site:youtube.com or site:.gov.

If you are looking for information on the GitLab "team", then simply type this into the Google search:

team site:about.gitlab.com

The google search results will be only from about.gitlab.com.

Similarly, if you're looking for "permissions" in product documentation, then simply type this into search:

permissions site:docs.gitlab.com

The google search results will be only be documentation from docs.gitlab.com.

Advanced Solution

The site: technique is incredibly powerful. But, if you use it often, you end up typing the URL frequently. There is a hack for Chrome to use Chrome's search engine configuration to eliminate having to type site:about.gitlab.com every time. You only have to type 3 characters. Here's how.

First: Configure a new Search Engine in Chrome

Step Image
1. Right click on the URL field in chrome and select "Edit Search Engines Edit search engine
2. In the Dialog, click Add Add search engine
3. There are THREE fields in the Edit search engine dialog.
a. In the Search Engine field Enter GitLab
b. In the Keyword field, enter gl
c. In the URL field enter http://www.google.com/search?q=%s%20site:about.gitlab.com
d. Click Save.
Enter search engine details

Then Go to a new chrome tab and test it.

Step Image
1. In the chrome URL/search field type gl Use Keyword to search
2. AND then press space. Notice how the field changes to indicate the selected search engine. Press space key
3. Now, your new GitLab search engine will search using the site:about.gitlab.com modifier. Search results from Gitlab

What about GitLab documentation?

Simple. create another search engine.

  1. In the Edit search engine dialog.
    1. In the Search Engine field Enter GitLab docs
    2. In the Keyword field, enter gd
    3. In the URL field enter http://www.google.com/search?q=%s%20site:docs.gitlab.com

Settings for docs.gitlab.com