Skip to content

Commit b644a52

Browse files
authored
repo sync
2 parents b36399c + 0577d4f commit b644a52

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

contributing/search.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
# Search
22

3-
## Table of contents
4-
- [Overview](#overview)
5-
- [Production deploys](#production-deploys)
6-
- [Manual sync from a checkout](#manual-sync-from-a-checkout)
7-
- [Build without sync (dry run)](#build-without-sync-dry-run)
8-
- [Build and sync](#build-and-sync)
9-
- [Label-triggered Actions workflow](#label-triggered-actions-workflow)
10-
- [Files](#files)
11-
- [GitHub Actions workflow files](#github-actions-workflow-files)
12-
- [Code files](#code-files)
13-
14-
153
## Overview
164

175
This site's search functionality is powered by [Algolia](https://www.algolia.com), a third-party service.
@@ -24,6 +12,12 @@ To see all existing search-related issues and pull requests, visit [github.com/g
2412

2513
---
2614

15+
## How to search
16+
17+
The site search is part of every version of docs.github.com. On any page, you can use the search box to search the documents we've indexed.
18+
You can also query our search endpoint directly at: https://docs.github.com/search?language=en&version=dotcom&query=jekyll
19+
This endpoint responds in JSON format, and fronts Algolia and Lunr. We recommend using this endpoint over directly integrating with Algolia or Lunr, as the endpoint will be more stable.
20+
2721
## Production deploys
2822

2923
A [GitHub Actions workflow](.github/workflows/sync-algolia-search-indices.yml) triggered by pushes to the `main` branch syncs the search data to Algolia. This process generates structured data for all pages on the site, compares that data to what's currently on Algolia, then adds, updates, or removes indices based on the diff of the local and remote data, being careful not to create duplicate records and avoiding any unnecessary (and costly) indexing operations.

0 commit comments

Comments
 (0)