File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,14 @@ const SEARCH_DOCS = true;
16
16
let docsearch ;
17
17
if ( typeof window !== "undefined" && SEARCH_DOCS ) {
18
18
docsearch = require ( "docsearch.js/dist/cdn/docsearch.min" ) ;
19
- window . docsearch = docsearch ;
19
+ try {
20
+ docsearch ( {
21
+ apiKey : "4b6d0afa80197db35886555b5ef4721f" ,
22
+ inputSelector : "#search-docs" ,
23
+ indexName : "graphene_python" ,
24
+ debug : false
25
+ } ) ;
26
+ } catch ( e ) { }
20
27
} else {
21
28
docsearch = false ;
22
29
}
@@ -343,7 +350,7 @@ class Header extends React.Component {
343
350
content: "{% endraw %}";
344
351
}
345
352
` } </ style >
346
- < script
353
+ { /* <script
347
354
type="text/javascript"
348
355
dangerouslySetInnerHTML={{
349
356
__html: `
@@ -355,7 +362,7 @@ docsearch({
355
362
});
356
363
`
357
364
}}
358
- />
365
+ />*/ }
359
366
</ div >
360
367
) ;
361
368
}
You can’t perform that action at this time.
0 commit comments