1
0
mirror of synced 2025-12-22 03:16:52 -05:00
Files
docs/lib/search/lunr-get-index-names.js
Kevin Heis d9d61f42ef Add Lunr as a site search option (#17388)
* Add Lunr as a site search option

* Use a class like the Algolia option does

* Lint

* Working on showing real content, prep for highlighting

* Move searching to their own files

* Split out ridiculous fn

* Add highlighting

* Less lunr search code

* A little more tidy

* Then chain on write too

* Mark from server too

* Write a batch of indices

* Update compress.js

* Highlighting with fewer calls

* Update lunr-search.js

* Update lunr-search.js

* Update lunr-search.js

* Update lunr-search.js

* Update lunr-search.js

* Update lunr-search.js
2021-01-28 19:38:22 +00:00

7 lines
176 B
JavaScript

const fs = require('fs').promises
const path = require('path')
module.exports = async function getIndexNames () {
return await fs.readdir(path.join(__dirname, 'indexes'))
}