mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-28 22:18:52 +00:00
pass file path rather then data to algolia
This commit is contained in:
+1
-3
@@ -201,9 +201,7 @@ gulp.task('publish:search-index', (cb) => {
|
|||||||
}).on('close', code => {
|
}).on('close', code => {
|
||||||
if (code === 0) {
|
if (code === 0) {
|
||||||
console.log('Publishing to algolia', process.env.ALGOLIA_INDEX_NAME);
|
console.log('Publishing to algolia', process.env.ALGOLIA_INDEX_NAME);
|
||||||
const rawdata = fs.readFileSync('public/final.algolia.json');
|
atomicalgolia(process.env.ALGOLIA_INDEX_NAME, process.env.ALGOLIA_INDEX_FILE, (err, result) => {
|
||||||
const merged = JSON.parse(rawdata);
|
|
||||||
atomicalgolia(process.env.ALGOLIA_INDEX_NAME, merged, (err, result) => {
|
|
||||||
console.log(result);
|
console.log(result);
|
||||||
cb(err);
|
cb(err);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user