We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a84c6d6 commit ae680c8Copy full SHA for ae680c8
assets/js/generate-lunr-index.js
@@ -1,7 +1,7 @@
1
const fs = require('fs');
2
const lunr = require('lunr');
3
4
-const data = JSON.parse(fs.readFileSync('docs/offline-search-index.json'));
+const data = JSON.parse(fs.readFileSync('./docs/offline-search-index.json'));
5
6
const idx = lunr(function () {
7
this.ref('ref');
@@ -21,4 +21,4 @@ const idx = lunr(function () {
21
});
22
23
24
-fs.writeFileSync('assets/json/lunr-index.json', JSON.stringify(idx));
+fs.writeFileSync('./assets/json/lunr-index.json', JSON.stringify(idx));
0 commit comments