Pass both the actual version and the version aliases (latest or next) when available.
This ensures a smooth transition when Antora will manage the latest and next aliases. DocSearch doesn't know the aliases until the site is in production and it has been re-indexed.
During the transition, the search will work for readers (as indexed with the actual version) and also after the content has been re-indexed (using the alias).
In addition, remove the old commented code related to DocSearch click events. We will eventually enable it later.
Pass both the actual version and the version aliases (latest or next) when available. This ensures a smooth transition when
Antora
will manage the latest and next aliases.DocSearch
doesn't know the aliases until the site is in production and it has been re-indexed. During the transition, the search will work for readers (as indexed with the actual version) and also after the content has been re-indexed (using the alias).In addition, remove the old commented code related to
DocSearch
click events. We will eventually enable it later.Notes
See related PR: https://github.com/bonitasoft/bonita-documentation-site/pull/520
See issue: https://github.com/bonitasoft/bonita-documentation-site/issues/419
Tests
With the DocSearch client of the Crawler, when we select 2 versions for the search, here is the body of the request
Versions parameter
-> This is consistent with what we get in the page source ✅