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:
authorSuzanne Selhorn <sselhorn@gitlab.com>2022-09-23 18:45:59 +0300
committerSuzanne Selhorn <sselhorn@gitlab.com>2022-09-23 18:45:59 +0300
commit1eb30e77f647b33b18447f3752049dcd8dfb5ae9 (patch)
tree2e8595df39e1945ef452ecdb240cc9ac07c7eeed /layouts
parent0424099e5bad12b60aa91c7f087217fb83988fc6 (diff)
parent9d4f6d4f179ccfb8bf60c14ffdd61e9a67584971 (diff)
Merge branch '1130-algolia-custom-ranking' into 'main'
Add page ranking capabilities for Algolia search Closes #1130 See merge request https://gitlab.com/gitlab-org/gitlab-docs/-/merge_requests/2976 Merged-by: Suzanne Selhorn <sselhorn@gitlab.com> Approved-by: Suzanne Selhorn <sselhorn@gitlab.com> Approved-by: David O'Regan <doregan@gitlab.com> Co-authored-by: Sarah German <sgerman@gitlab.com>
Diffstat (limited to 'layouts')
-rw-r--r--layouts/head.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/head.html b/layouts/head.html
index d1b264d4..9708a231 100644
--- a/layouts/head.html
+++ b/layouts/head.html
@@ -24,6 +24,8 @@
<% else %>
<meta name="docsearch:version" content="<%= ENV['CI_DEFAULT_BRANCH'] %>" />
<% end %>
+<meta name="docsearch:pageRank" content="<%= algolia_rank(@item).to_s %>" />
+<meta name="docsearch:level" content="<%= algolia_level(@item).to_s %>" />
<link crossorigin href="https://3PNCFOU757-dsn.algolia.net" rel="preconnect" />
<!-- Algolia Searching from the URL bar https://www.algolia.com/doc/tutorials/search-ui/ux-patterns/search-from-the-url-bar/ -->
<link href='/opensearch.xml' rel='search' title='Search through GitLab Docs' type='application/opensearchdescription+xml'>