mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-25 04:28:15 +00:00
Merge pull request #433 from westlywright/master
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 => {
|
||||
if (code === 0) {
|
||||
console.log('Publishing to algolia', process.env.ALGOLIA_INDEX_NAME);
|
||||
const rawdata = fs.readFileSync('public/final.algolia.json');
|
||||
const merged = JSON.parse(rawdata);
|
||||
atomicalgolia(process.env.ALGOLIA_INDEX_NAME, merged, (err, result) => {
|
||||
atomicalgolia(process.env.ALGOLIA_INDEX_NAME, process.env.ALGOLIA_INDEX_FILE, (err, result) => {
|
||||
console.log(result);
|
||||
cb(err);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user