Problem
Search index not being found when turn on hash-files flag:

When I list the files in the build step, I see the file has different hash:

Steps
-
Add this to book.toml:
[output.html]
hash-files = true
-
Build the book:
bin/mdbook build --dest-dir ./docs
echo "Files:"
ls -l docs
-
Notice the index file has different hash compared to the one used in the searcher.js:

Possible Solution(s)
Maybe ensure that the generation of index file must be finished before the searcher file.
Notes
Live example:
https://cli.eshn.dev/epi-deployment-start-command.html
Version
Problem
Search index not being found when turn on
hash-filesflag:When I list the files in the build step, I see the file has different hash:
Steps
Add this to book.toml:
Build the book:
Notice the index file has different hash compared to the one used in the searcher.js:
Possible Solution(s)
Maybe ensure that the generation of index file must be finished before the searcher file.
Notes
Live example:
https://cli.eshn.dev/epi-deployment-start-command.html
Version