Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2018-10-18 23:27:13 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2018-10-18 23:27:13 +0300
commit645836d98d9d1a991a374fb11ef23edd0365b3f7 (patch)
treee8b63324a636470bda90908ab8b82c0b7f2fd9d5 /README.md
parentea1751faf1a27c87651f183454d41693dd780bcd (diff)
parent4bb9cd220658d66ab1813fc7dcea047b555a5573 (diff)
Merge branch 'document-algolia-search' into 'master'
Document how Algolia works Closes #74 See merge request gitlab-com/gitlab-docs!299
Diffstat (limited to 'README.md')
-rw-r--r--README.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/README.md b/README.md
index b0466006..176467ce 100644
--- a/README.md
+++ b/README.md
@@ -32,6 +32,7 @@ The [deployment process](#deployment-process) happens automatically every hour.
- [Using YAML data files](#using-yaml-data-files)
- [Review Apps for documentation merge requests](#review-apps-for-documentation-merge-requests)
- [Deployment process](#deployment-process)
+- [Algolia search](#algolia-search)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
@@ -332,6 +333,33 @@ to build the site once an hour.
By default, we pull from the master branch of [all the projects](#projects-we-pull-from).
+## Algolia search
+
+The docs site uses [Algolia docsearch](https://community.algolia.com/docsearch/)
+for its search function. This is how it works:
+
+1. GitLab is a member of the [docsearch program](https://community.algolia.com/docsearch/#join-docsearch-program),
+ which is the free tier of [Algolia](https://www.algolia.com/).
+1. Algolia hosts a [doscsearch config](https://github.com/algolia/docsearch-configs/blob/master/configs/gitlab.json)
+ for the GitLab docs site, and we've worked together to refine it.
+1. That [config](https://community.algolia.com/docsearch/config-file.html) is
+ parsed by their [crawler](https://community.algolia.com/docsearch/crawler-overview.html)
+ every 24h and [stores](https://community.algolia.com/docsearch/inside-the-engine.html)
+ the [docsearch index](https://community.algolia.com/docsearch/how-do-we-build-an-index.html)
+ on [Algolia's servers](https://community.algolia.com/docsearch/faq.html#where-is-my-data-hosted%3F).
+1. On the docs side, we use a [docsearch layout](/layouts/docsearch.html) which
+ is present on pretty much every page except https://docs.gitlab.com/search/,
+ which uses its [own layout](/layouts/instantsearch.html). In those layouts,
+ there's a javascript snippet which initiates docsearch by using an API key
+ and an index name (`gitlab`) that are needed for Algolia to show the results.
+
+**For GitLab employees:**
+The credentials to access the Algolia dashboard are stored in 1Password. If you
+want to receive weekly reports of the search usage, search the Google doc with
+title "Email, Slack, and GitLab Groups and Aliases", search for `docsearch`,
+and add a comment with your email to be added to the alias that gets the weekly
+reports.
+
[job]: https://gitlab.com/gitlab-org/gitlab-ce/blob/2c00d00ec1c39dbea0e0e54265027b5476b78e3c/.gitlab-ci.yml#L308-318
[pages]: https://about.gitlab.com/features/pages/
[environments page]: https://gitlab.com/gitlab-com/gitlab-docs/environments/folders/review