Skip to content

Commit ae680c8

Browse files
committed
fix paths
1 parent a84c6d6 commit ae680c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/js/generate-lunr-index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const fs = require('fs');
22
const lunr = require('lunr');
33

4-
const data = JSON.parse(fs.readFileSync('docs/offline-search-index.json'));
4+
const data = JSON.parse(fs.readFileSync('./docs/offline-search-index.json'));
55

66
const idx = lunr(function () {
77
this.ref('ref');
@@ -21,4 +21,4 @@ const idx = lunr(function () {
2121
});
2222
});
2323

24-
fs.writeFileSync('assets/json/lunr-index.json', JSON.stringify(idx));
24+
fs.writeFileSync('./assets/json/lunr-index.json', JSON.stringify(idx));

0 commit comments

Comments
 (0)