]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP2056480: docs: only index the latest version of the docs for lunr
authorJane Sandberg <sandbergja@gmail.com>
Mon, 11 Mar 2024 03:20:42 +0000 (20:20 -0700)
committerGalen Charlton <gmc@equinoxOLI.org>
Mon, 11 Mar 2024 13:11:31 +0000 (09:11 -0400)
commit0f7289055ff89dd504dfd05f630897f32c203fe7
treebc84851e702b63d6f98cbfbe96fe5538fb759787
parent24fdc928f491ad9972c783720632ebdcc618ef55
LP2056480: docs: only index the latest version of the docs for lunr

This addresses a regression caused by bug 2056480.

To test:
* Build the docs using
  cd docs
  perl generate_docs.pl --base-url=http://example.com
* Open docs/output/index.html in your browser
* Type a search into the search box
* Note that you only get results for latest, rather than getting duplicate
results from multiple versions.
* Note that the file docs/output/search-index.js is now 3.3 MB, rather than
5.53 MB.

Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
docs/generate_docs.pl
docs/site.yml