Skip to content

Commit 1363428

Browse files
authored
Merge pull request #24092 from dvdksn/pagefind-v1.5.0
pagefind v1.5.0
2 parents 27fdb35 + 77645c2 commit 1363428

File tree

14 files changed

+141
-393
lines changed

14 files changed

+141
-393
lines changed

.htmltest.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ IgnoreURLs:
1010
- "^/reference/api/hub/.*$"
1111
- "^/reference/api/engine/v.+/#.*$"
1212
- "^/reference/api/registry/.*$"
13+
- "^/pagefind/.*$"
1314
IgnoreDirs:
1415
- "registry/configuration"
1516
- "compose/compose-file" # temporarily ignore until upstream is fixed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ARG HTMLTEST_VERSION=0.17.0
77
ARG VALE_VERSION=3.11.2
88
ARG HUGO_VERSION=0.154.2
99
ARG NODE_VERSION=22
10-
ARG PAGEFIND_VERSION=1.3.0
10+
ARG PAGEFIND_VERSION=1.5.0-beta.1
1111

1212
# base defines the generic base stage
1313
FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS base

assets/css/pagefind.css

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/* Pagefind Component UI Customizations */
2+
3+
/* Dark mode variables for modal */
4+
.dark pagefind-modal {
5+
--pf-text: var(--color-gray-100);
6+
--pf-text-secondary: var(--color-gray-300);
7+
--pf-text-muted: var(--color-gray-400);
8+
--pf-background: var(--color-gray-900);
9+
--pf-border: var(--color-gray-700);
10+
--pf-border-focus: var(--color-blue-400);
11+
--pf-hover: var(--color-gray-800);
12+
}
13+
14+
/* Highlight marks in results */
15+
pagefind-results mark {
16+
background-color: var(--color-yellow-200);
17+
color: inherit;
18+
padding: 0 0.125rem;
19+
border-radius: 0.125rem;
20+
}
21+
22+
.dark pagefind-results mark {
23+
background-color: rgba(255, 204, 72, 0.3);
24+
color: white;
25+
}

assets/css/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
@import "global.css";
3939
}
4040
@import "utilities.css";
41+
@import "pagefind.css";
4142
@import "syntax-dark.css";
4243
@import "syntax-light.css";
4344
@import "components.css";

content/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
title: Home
33
description: Docker Documentation is the official Docker library of resources, manuals, and guides to help you containerize applications.
44
keywords: Docker, documentation, manual, guide, reference, api, samples
5+
aliases:
6+
- /search/
57
---

content/search.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs_engineer.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ agents:
290290
291291
toolsets:
292292
- type: filesystem
293+
- type: fetch
293294
- type: shell
294295
- type: todo
295296
- type: script

layouts/_default/baseof.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
{{ if ne .Params.sitemap false }}data-pagefind-body{{- end }}
6464
class="dark:bg-background-dark w-full min-w-0 bg-white p-8"
6565
>
66+
{{ partial "pagefind-meta.html" . }}
6667
{{ block "main" . }}
6768
{{ end }}
6869
</div>

layouts/_default/search.html

Lines changed: 0 additions & 191 deletions
This file was deleted.

layouts/partials/breadcrumbs.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
<nav
22
id="breadcrumbs"
3-
{{- $breadcrumbTitles := slice }}
43
data-pagefind-ignore
54
class="breadcrumbs mb-4 flex min-w-0 items-center gap-2 text-gray-400 dark:text-gray-300"
65
>
76
{{ range .Ancestors.Reverse }}
8-
{{ $breadcrumbTitles = $breadcrumbTitles | append .LinkTitle }}
97
<a href="{{ .Permalink }}" class="link truncate"
108
>{{ markdownify .LinkTitle }}</a
119
>
1210
<span>/</span>
1311
{{- end }}
14-
<span
15-
data-pagefind-meta="breadcrumbs:{{ collections.Delimit $breadcrumbTitles " / " }}"
16-
class="truncate"
17-
>{{ markdownify .LinkTitle }}</span
18-
>
12+
<span class="truncate">{{ markdownify .LinkTitle }}</span>
1913
</nav>

0 commit comments

Comments
 (0)