mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-26 13:08:11 +00:00
bug fixes search
This commit is contained in:
+1
-10
@@ -168,16 +168,7 @@ gulp.task('pub-delete', () => {
|
||||
|
||||
|
||||
gulp.task('build:search-index', (cb) => {
|
||||
const env = process.env;
|
||||
|
||||
env.ALGOLIA_APP_ID = '30NEY6C9UY';
|
||||
env.ALGOLIA_INDEX_NAME = isProduction ? 'prod_docs' : 'dev_docs';
|
||||
env.ALGOLIA_INDEX_FILE = 'public/algolia.json';
|
||||
|
||||
const opts = {
|
||||
stdio: 'inherit',
|
||||
env: env
|
||||
};
|
||||
const opts = {stdio: 'inherit'};
|
||||
return spawn(process.cwd()+'/scripts/build-algolia.js', opts).on('close', (/* code */) => {
|
||||
cb();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user