1
0
mirror of synced 2025-12-22 19:34:15 -05:00

LFS the Lunr Indexes (#20521)

* LFS the Lunr Indexes

* Add a note about installing Git LFS

* Run "install" command

* Update indexes

* Index names
This commit is contained in:
Kevin Heis
2021-07-27 15:06:31 -07:00
committed by GitHub
parent 6144b2a792
commit eddadb875e
87 changed files with 125 additions and 54 deletions

View File

@@ -6,5 +6,9 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url))
const fs = xFs.promises
export default async function getIndexNames() {
return await fs.readdir(path.join(__dirname, '../../lib/search/indexes'))
const indexList = await fs.readdir(path.join(__dirname, '../../lib/search/indexes'))
return indexList
.sort()
.filter((index) => !index.includes('records'))
.map((index) => index.replace('.json.br', ''))
}