[go: up one dir, main page]

Skip to content

lunr.js is empty when using multiple output destinations

With this configuration:

site:
  title: Test Docs
  start_page: component-a::index.adoc
content:
  sources:
  - url: https://gitlab.com/antora/demo/demo-component-a.git
    branches: HEAD
ui:
  bundle:
    url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable
    snapshot: true
output:
  clean: true
  dir: ./public/test
  destinations:
  - provider: archive
antora:
  extensions:
  - '@antora/lunr-extension'

The resulting public/test/_/js/vendor/lunr.js file is empty, while the one in build/site.zip is correct.
If I remove the archive destination, and keep only one output, the js file in public/test is OK.

Tested with the following packages: @antora/cli@3.0.0 @antora/site-generator@3.0.0 @antora/lunr-extension@1.0.0-alpha.6

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information