From 0e0381132af7f9efe7fc725dd5acf8d7f41284f3 Mon Sep 17 00:00:00 2001 From: "Julio C. Estrada" Date: Fri, 16 Jan 2026 03:30:14 -0500 Subject: [PATCH] Add Lunr search UI integration (#580) - Add search input field to toolbar (conditionally rendered when SITE_SEARCH_PROVIDER is set) - Load lunr.js, search-ui.js, and search-index.js scripts - Add maximum-scale=1 to viewport meta tag for better mobile behavior Refs: boostorg/boostlook#142 --- antora-ui/src/partials/footer-scripts.hbs | 6 ++++++ antora-ui/src/partials/head-prelude.hbs | 2 +- antora-ui/src/partials/header-content.hbs | 11 +++++------ antora-ui/src/partials/toolbar.hbs | 7 +++++++ 4 files changed, 19 insertions(+), 7 deletions(-) diff --git a/antora-ui/src/partials/footer-scripts.hbs b/antora-ui/src/partials/footer-scripts.hbs index 0e9a96b..e7cba0d 100644 --- a/antora-ui/src/partials/footer-scripts.hbs +++ b/antora-ui/src/partials/footer-scripts.hbs @@ -1,3 +1,9 @@ +{{#if env.SITE_SEARCH_PROVIDER}} + + + +{{/if}} \ No newline at end of file diff --git a/antora-ui/src/partials/head-prelude.hbs b/antora-ui/src/partials/head-prelude.hbs index a8b267d..ab7b697 100644 --- a/antora-ui/src/partials/head-prelude.hbs +++ b/antora-ui/src/partials/head-prelude.hbs @@ -1,2 +1,2 @@ - + diff --git a/antora-ui/src/partials/header-content.hbs b/antora-ui/src/partials/header-content.hbs index fa45020..ce8b795 100644 --- a/antora-ui/src/partials/header-content.hbs +++ b/antora-ui/src/partials/header-content.hbs @@ -1,6 +1,5 @@ - + \ No newline at end of file diff --git a/antora-ui/src/partials/toolbar.hbs b/antora-ui/src/partials/toolbar.hbs index e8b4fd0..b7be88a 100644 --- a/antora-ui/src/partials/toolbar.hbs +++ b/antora-ui/src/partials/toolbar.hbs @@ -1,5 +1,12 @@