File tree Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -366,19 +366,23 @@ class Header extends React.Component {
366
366
content: "{% endraw %}";
367
367
}
368
368
` } </ style >
369
- { /* <script
369
+ < script
370
370
type = "text/javascript"
371
371
dangerouslySetInnerHTML = { {
372
372
__html : `
373
- docsearch({
374
- apiKey: "4b6d0afa80197db35886555b5ef4721f",
375
- inputSelector: "#search-docs",
376
- indexName: "graphene_python",
377
- debug: false
378
- });
379
- `
373
+ docsearch({
374
+ apiKey: "4b6d0afa80197db35886555b5ef4721f",
375
+ inputSelector: "#search-docs",
376
+ indexName: "graphene_python",
377
+ transformData: function(suggestions) {
378
+ return suggestions.map(function(suggestion) {
379
+ suggestion.url = suggestion.url.replace("http:", "https:");
380
+ return suggestion;
381
+ });
382
+ }
383
+ });`
380
384
} }
381
- />*/ }
385
+ />
382
386
</ div >
383
387
) ;
384
388
}
@@ -396,7 +400,7 @@ const TemplateWrapper = ({ children, ...otherProps }) => {
396
400
] }
397
401
>
398
402
< script src = "https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js" />
399
- < script >
403
+ { /* <script>
400
404
{`
401
405
docsearch({
402
406
apiKey: "4b6d0afa80197db35886555b5ef4721f",
@@ -409,7 +413,7 @@ const TemplateWrapper = ({ children, ...otherProps }) => {
409
413
});
410
414
}
411
415
});` }
412
- </ script >
416
+ </script>*/ }
413
417
</ Helmet >
414
418
< Header docs = { docs } />
415
419
< div > { children ( ) } </ div >
You can’t perform that action at this time.
0 commit comments