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>2022-02-08 00:10:01 +0300
committerSuzanne Selhorn <sselhorn@gitlab.com>2022-02-08 00:10:01 +0300
commite795ae745833427e8006ded108222f1af0ea988b (patch)
tree5c349860ad78ead7ca25819b4b68856014408057 /layouts
parentf0a35e98964577964f9014eb9e5cddc3df8bf13c (diff)
Migrate to Docsearch v3
Diffstat (limited to 'layouts')
-rw-r--r--layouts/404.html1
-rw-r--r--layouts/docsearch.html2
-rw-r--r--layouts/head.html2
-rw-r--r--layouts/header.html6
4 files changed, 3 insertions, 8 deletions
diff --git a/layouts/404.html b/layouts/404.html
index b4740b4c..525641a4 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -18,7 +18,6 @@
</section>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.bundle.min.js" integrity="sha384-LtrjvnR4Twt/qOuYxE721u19sVFLVSA4hf/rRt6PrZTmiPltdZcI7q7PXQBYTKyf" crossorigin="anonymous"></script>
- <script type="application/javascript" src="<%= @items['/assets/javascripts/404.*'].path %>"></script>
<script src="<%= @items['/frontend/404/404.*'].path %>"></script>
<%= render '/docsearch.*' %>
<% if production? %>
diff --git a/layouts/docsearch.html b/layouts/docsearch.html
index 21037f14..f09949f1 100644
--- a/layouts/docsearch.html
+++ b/layouts/docsearch.html
@@ -1,3 +1,3 @@
<!-- Algolia docsearch https://community.algolia.com/docsearch/ -->
-<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
+<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@docsearch/js@alpha"></script>
<script src="<%= @items['/assets/javascripts/docsearch.*'].path %>"></script>
diff --git a/layouts/head.html b/layouts/head.html
index fc114493..25fe2d0f 100644
--- a/layouts/head.html
+++ b/layouts/head.html
@@ -39,7 +39,7 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- end of fontawesome -->
<!-- Docsearch https://community.algolia.com/docsearch/ - via CDN -->
-<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css">
+<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@alpha" />
<!-- end of docsearch -->
<% if production? %>
diff --git a/layouts/header.html b/layouts/header.html
index 5c1b3130..083744d1 100644
--- a/layouts/header.html
+++ b/layouts/header.html
@@ -12,11 +12,7 @@
<% if @item[:searchbar].nil? %>
<% location = @item.identifier.to_s.split('/')[1] %>
<% unless %w(search index.erb).any?(location) %>
- <form class="form-inline my-2 my-lg-0" id="search-form" action="/search/" method="get" role="search">
- <span class="fa fa-search form-control-feedback position-absolute ml-3 text-muted" aria-hidden="true"></span>
- <input class="form-control mr-sm-2 docsearch border-0" name="query" type="search" placeholder="Search the docs..." aria-label="Search">
- <input type="submit" style="visibility: hidden; position:absolute;" aria-label="Submit search" />
- </form>
+ <div id="docsearch" class="my-2 my-lg-0"></div>
<% end %>
<% end %>
</li>