Integration of Lunr in Antora
This release includes bug fixes and improvements from three contributors! :hugs:
contentCatalog
and env
parameters to generateIndex() to avoid error: Cannot read property
DOCSEARCH_INDEX_VERSION` of undefined - thanks @Janaka-StephbasePath
and pagePath
as data attributes to avoid using an inline script (might be blocked by strict Content-security-policy) - thanks @citizenkenThis release includes two improvements from two contributors! :tada:
💡 Don't forget to update your UI to at least define window.antora.basePath
. This variable will be used to construct the complete URL of search results client-side:
<script>
window.antora = window.antora || {}
window.antora.basePath = '{{or siteRootPath (or site.url siteRootUrl)}}'
</script>
DOCSEARCH_INDEX_VERSION=latest
- thanks @danyillnpm audit fix
supplemental_ui
directory in the npm packagenoindex
is defined as page attribute or as meta tagantora-site-generator-lunr
packagenpm audit fix