Skip to content

Commit b68b5ab

Browse files
author
Janaka-Steph
committed
Fix Antora Lunr
1 parent fb8677c commit b68b5ab

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ WORKDIR /home/app/
1313
USER app
1414

1515
# Don't forget to build locally first
16+
# Don't forget manual steps to generate search-index.js (https://github.com/Mogztter/antora-lunr)
1617
COPY ./dist /home/app/dist
1718

1819
ENV mode="static"

README.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Antora then copies the remaining UI assets to the site output.
2525
gulp bundle
2626

2727
.Build the website
28-
antora antora-playbook.yml
28+
DOCSEARCH_ENABLED=true DOCSEARCH_ENGINE=lunr DOCSEARCH_INDEX_VERSION=latest antora antora-playbook.yml
2929

3030
- The Documentation Components stored in versioned branches (v4, v5, ...).
3131

@@ -37,3 +37,7 @@ Build the website locally, then
3737
faas up
3838

3939

40+
== Lunr Offline Search Engine
41+
42+
In order to have Lunr working and generate the `search-index.js` file, we need to do some manual tweaking explained here https://github.com/Mogztter/antora-lunr
43+

0 commit comments

Comments
 (0)