* 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
7 lines
176 B
JavaScript
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'))
|
|
}
|