Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ARG HTMLTEST_VERSION=0.17.0
ARG VALE_VERSION=3.11.2
ARG HUGO_VERSION=0.154.2
ARG NODE_VERSION=22
ARG PAGEFIND_VERSION=1.3.0
ARG PAGEFIND_VERSION=1.5.0-beta.1

# base defines the generic base stage
FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS base
Expand Down
25 changes: 25 additions & 0 deletions assets/css/pagefind.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/* Pagefind Component UI Customizations */

/* Dark mode variables for modal */
.dark pagefind-modal {
--pf-text: var(--color-gray-100);
--pf-text-secondary: var(--color-gray-300);
--pf-text-muted: var(--color-gray-400);
--pf-background: var(--color-gray-900);
--pf-border: var(--color-gray-700);
--pf-border-focus: var(--color-blue-400);
--pf-hover: var(--color-gray-800);
}

/* Highlight marks in results */
pagefind-results mark {
background-color: var(--color-yellow-200);
color: inherit;
padding: 0 0.125rem;
border-radius: 0.125rem;
}

.dark pagefind-results mark {
background-color: rgba(255, 204, 72, 0.3);
color: white;
}
1 change: 1 addition & 0 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
@import "global.css";
}
@import "utilities.css";
@import "pagefind.css";
@import "syntax-dark.css";
@import "syntax-light.css";
@import "components.css";
Expand Down
2 changes: 2 additions & 0 deletions content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
title: Home
description: Docker Documentation is the official Docker library of resources, manuals, and guides to help you containerize applications.
keywords: Docker, documentation, manual, guide, reference, api, samples
aliases:
- /search/
---
7 changes: 0 additions & 7 deletions content/search.md

This file was deleted.

1 change: 1 addition & 0 deletions docs_engineer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ agents:

toolsets:
- type: filesystem
- type: fetch
- type: shell
- type: todo
- type: script
Expand Down
1 change: 1 addition & 0 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
{{ if ne .Params.sitemap false }}data-pagefind-body{{- end }}
class="dark:bg-background-dark w-full min-w-0 bg-white p-8"
>
{{ partial "pagefind-meta.html" . }}
{{ block "main" . }}
{{ end }}
</div>
Expand Down
191 changes: 0 additions & 191 deletions layouts/_default/search.html

This file was deleted.

8 changes: 1 addition & 7 deletions layouts/partials/breadcrumbs.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
<nav
id="breadcrumbs"
{{- $breadcrumbTitles := slice }}
data-pagefind-ignore
class="breadcrumbs mb-4 flex min-w-0 items-center gap-2 text-gray-400 dark:text-gray-300"
>
{{ range .Ancestors.Reverse }}
{{ $breadcrumbTitles = $breadcrumbTitles | append .LinkTitle }}
<a href="{{ .Permalink }}" class="link truncate"
>{{ markdownify .LinkTitle }}</a
>
<span>/</span>
{{- end }}
<span
data-pagefind-meta="breadcrumbs:{{ collections.Delimit $breadcrumbTitles " / " }}"
class="truncate"
>{{ markdownify .LinkTitle }}</span
>
<span class="truncate">{{ markdownify .LinkTitle }}</span>
</nav>
1 change: 1 addition & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink }}" />
{{ end -}}
{{ partial "utils/css.html" "-" }}
<link href="/pagefind/pagefind-component-ui.css" rel="stylesheet">
{{- if hugo.IsProduction -}}
<script
src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js"
Expand Down
10 changes: 10 additions & 0 deletions layouts/partials/pagefind-meta.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{/* Pagefind metadata - must be inside data-pagefind-body */}}
{{- $description := partial "utils/description.html" . -}}
{{- $keywords := partialCached "utils/keywords.html" . . -}}
{{- $breadcrumbs := slice -}}
{{- range .Ancestors.Reverse -}}
{{- $breadcrumbs = $breadcrumbs | append .LinkTitle -}}
{{- end -}}
{{- with $description }}<meta data-pagefind-meta="description:{{ . }}">{{ end }}
{{- with $keywords }}<meta data-pagefind-meta="keywords:{{ delimit . ", " }}">{{ end }}
{{- with $breadcrumbs }}<meta data-pagefind-meta="breadcrumbs:{{ delimit . " / " }}">{{ end }}
Loading
Loading