Skip to content

Commit

Permalink
fix [issues]: #200
Browse files Browse the repository at this point in the history
  • Loading branch information
MunifTanjim committed Dec 18, 2018
1 parent 7f0f467 commit 5757da4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/generate-search-index-algolia.js
Expand Up @@ -10,7 +10,7 @@ const client = algoliasearch(

const indexName = process.env.ALGOLIA_INDEX_NAME || 'minimo_site'

const publicDir = path.resolve(__dirname, '..', process.argv[2] || 'public')
const publicDir = path.resolve(process.argv[2] || 'public')

const objectsPaths = glob.sync('**/search/index.json', {
cwd: publicDir,
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-search-index-lunr.js
Expand Up @@ -4,7 +4,7 @@ const path = require('path')
const glob = require('glob')
const lunr = require('lunr')

const publicDir = path.resolve(__dirname, '..', process.argv[2] || 'public')
const publicDir = path.resolve(process.argv[2] || 'public')

const documentsPaths = glob.sync('**/search/index.json', {
cwd: publicDir,
Expand Down

0 comments on commit 5757da4

Please sign in to comment.