mirror of
https://github.com/docker/docs.git
synced 2026-06-19 07:35:16 +00:00
chore: upgrade pagefind and unhide search in safari
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ ARG HTMLTEST_VERSION=0.17.0
|
||||
ARG VALE_VERSION=3.11.2
|
||||
ARG HUGO_VERSION=0.158.0
|
||||
ARG NODE_VERSION=24
|
||||
ARG PAGEFIND_VERSION=1.5.0-beta.1
|
||||
ARG PAGEFIND_VERSION=1.5.2
|
||||
|
||||
# base defines the generic base stage
|
||||
FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS base
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
<div id="search-bar" class="h-full relative flex items-center overflow-visible" x-data="{ isSafari: /^((?!chrome|android).)*safari/i.test(navigator.userAgent) }">
|
||||
<div id="search-bar" class="h-full relative flex items-center overflow-visible">
|
||||
<button
|
||||
type="button"
|
||||
aria-label="Search"
|
||||
class="cursor-pointer flex items-center gap-2 p-2 rounded-lg bg-blue-700 border border-blue-500 text-white transition-colors focus:outline-none focus:ring focus:ring-blue-400 hover:bg-blue-800 hover:border-blue-400"
|
||||
id="search-modal-trigger"
|
||||
x-show="!isSafari"
|
||||
>
|
||||
<span class="icon-svg">
|
||||
{{ partialCached "icon" "search" "search" }}
|
||||
|
||||
+1
-1
@@ -10,4 +10,4 @@ HUGO_ENVIRONMENT = "preview"
|
||||
SECRETS_SCAN_OMIT_PATHS = "public/contribute/file-conventions/index.html"
|
||||
|
||||
[context.deploy-preview]
|
||||
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL && ./hack/flatten-and-resolve.js && npx pagefind@v1.5.0-beta.1"
|
||||
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL && ./hack/flatten-and-resolve.js && npx pagefind@v1.5.2"
|
||||
|
||||
Reference in New Issue
Block a user