Gathering detailed insights and metrics for @eastuni/antora-lunr-ko
Gathering detailed insights and metrics for @eastuni/antora-lunr-ko
Gathering detailed insights and metrics for @eastuni/antora-lunr-ko
Gathering detailed insights and metrics for @eastuni/antora-lunr-ko
npm install @eastuni/antora-lunr-ko
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (90.16%)
CSS (5.33%)
Handlebars (4.51%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
166 Commits
6 Branches
1 Contributors
Updated on May 03, 2021
Latest Version
0.8.0
Package Id
@eastuni/antora-lunr-ko@0.8.0
Unpacked Size
55.14 kB
Size
16.91 kB
File Count
11
NPM Version
6.14.12
Node Version
14.16.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
5
Lunr provides a great search experience without the need for external, server-side, search services. It makes it possible to add an offline search engine in your Antora's documentation site.
To integrate Lunr in Antora, we can either use a custom site generator pipeline that includes Lunr or modify your current site generator pipeline.
TIP: To make things easier, we provide a copy of the default site generator that in addition produces a Lunr index. Learn how to install and use this generator.
NOTE:
The following instructions only apply if you are using the default pipeline.
If you are using a custom pipeline, the logic remains the same but you will have to find yourself where the generateSite
function should be added.
Antora provides a default pipeline named @antora/site-generator-default
.
Make sure that it's installed using the command npm list --depth 0
.
If you don't find the module in the result then it's probably installed globally.
Add the -g
flag and execute the command again:
npm list -g --depth 0
/usr/local/lib
├── @antora/cli@2.0.0
├── @antora/site-generator-default@2.0.0
└── npm@6.5.0
As you can see in the example above, the module is installed globally in /usr/local/lib.
The node_modules
folder will be either at the root of your project or in your global libraries folder: /usr/local/lib/node_modules.
Once you've located the module, edit the file node_modules/@antora/site-generator-default/lib/generate-site.js
adding after use strict
:
1const generateIndex = require('antora-lunr')
In the generateSite
function add the following two lines after const siteFiles = mapSite(playbook, pages).concat(produceRedirects(playbook, contentCatalog))
:
1const index = generateIndex(playbook, pages, contentCatalog, env)
2siteFiles.push(generateIndex.createIndexFile(index))
Install this module:
1$ npm i antora-lunr
NOTE:
If Antora is installed globally, you should also add this module globally using the -g
flag:
1$ npm i -g antora-lunr
When generating your documentation site again, an index file will be created at the root of your output directory,
which depends on the value of output.dir
in your playbook.
For the default output dir,
that will be build/site/search-index.js
.
Now that we have a search-index.js
, we need to enable the search component in the UI.
Copy the supplemental_ui
directory from the npm package node_modules/antora-lunr/supplemental_ui in your Antora playbook repository and configure a supplemental_files
:
1ui: 2 bundle: 3 url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/master/raw/build/ui-bundle.zip?job=bundle-stable 4 snapshot: true 5 supplemental_files: ./supplemental_ui
NOTE: For this to function correctly you must provide the site.url
key in your playbook file.
See the Antora docs on the playbook schema.
If using the site locally (not serving from a web server) then you can set your site.url
to a file://
reference, e.g. file:///home/documents/antora/website/public/
.
TIP: If you are using serve HTTP server to view your site locally,
set the site.url
to http://localhost:5000
.
Generate your documentation site with the following environment variables:
DOCSEARCH_ENABLED=true
DOCSEARCH_ENGINE=lunr
For instance, as a command line:
1$ DOCSEARCH_ENABLED=true DOCSEARCH_ENGINE=lunr antora site.yml
To index only the latest (released) version, set the following environment variable:
DOCSEARCH_INDEX_VERSION=latest
For instance, as a command line:
1$ DOCSEARCH_ENABLED=true DOCSEARCH_ENGINE=lunr DOCSEARCH_INDEX_VERSION=latest antora site.yml
By default, Lunr support only English language. You can add support for the following other languages:
To use one or more languages, set the DOCSEARCH_LANGS
environment variable with all desired language codes (comma separated):
DOCSEARCH_LANGS=en,fr
For instance, as a command line:
1$ DOCSEARCH_ENABLED=true DOCSEARCH_ENGINE=lunr DOCSEARCH_LANGS=en,fr antora site.yml
In the root of the repository, run npm t
.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
no SAST tool detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
20 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More