File tree Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 22
22
"list" : " 89ad33e698"
23
23
},
24
24
"docSearch" : {
25
- "apiKey" : " 371e26ed49d29a27bd36273dfdaf89af" ,
25
+ "appId" : " Y1LB128RON" ,
26
+ "apiKey" : " bb601a1daab73e2dc66faf2b79564807" ,
26
27
"indexName" : " spacy"
27
28
},
28
29
"binderUrl" : " explosion/spacy-io-binder" ,
Original file line number Diff line number Diff line change @@ -6,13 +6,14 @@ import Icon from './icon'
6
6
import classes from '../styles/search.module.sass'
7
7
8
8
export default function Search ( { id = 'docsearch' , placeholder = 'Search docs' , settings = { } } ) {
9
- const { apiKey, indexName } = settings
9
+ const { apiKey, indexName, appId } = settings
10
10
if ( ! apiKey && ! indexName ) return null
11
11
const [ initialized , setInitialized ] = useState ( false )
12
12
useEffect ( ( ) => {
13
13
if ( ! initialized ) {
14
14
setInitialized ( true )
15
15
window . docsearch ( {
16
+ appId,
16
17
apiKey,
17
18
indexName,
18
19
inputSelector : `#${ id } ` ,
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ export const pageQuery = graphql`
41
41
docSearch {
42
42
apiKey
43
43
indexName
44
+ appId
44
45
}
45
46
}
46
47
}
Original file line number Diff line number Diff line change @@ -235,6 +235,7 @@ export const pageQuery = graphql`
235
235
docSearch {
236
236
apiKey
237
237
indexName
238
+ appId
238
239
}
239
240
}
240
241
}
You can’t perform that action at this time.
0 commit comments