Skip to content

Commit 3f99002

Browse files
committed
Restrict search to current version
Resolves #5302.
1 parent 4210979 commit 3f99002

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

antora-playbook.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ antora:
33
- '@antora/collector-extension'
44
- '@antora/pdf-extension'
55
- require: '@antora/lunr-extension'
6-
index_latest_only: true
76
index_by_heading: true
87
- require: '@springio/antora-extensions/root-component-extension'
98
root_component_name: junit

supplemental-ui/partials/header-content.hbs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
{{#if env.SITE_SEARCH_PROVIDER}}
99
<div class="navbar-item search hide-for-print">
1010
<div id="search-field" class="field">
11-
<input id="search-input" type="text" placeholder="Search the docs"{{#if page.home}} autofocus{{/if}}>
11+
<input id="search-input" type="text" placeholder="Search current version"{{#if page.home}} autofocus{{/if}}>
12+
<label style="display: none">
13+
<!-- restrict search to current version -->
14+
<input type="checkbox" data-facet-filter="version:{{page.componentVersion.version}}" checked>
15+
</label>
1216
</div>
1317
</div>
1418
{{/if}}

0 commit comments

Comments
 (0)