We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 895f971 commit 87ff067Copy full SHA for 87ff067
src/layouts/index.js
@@ -16,6 +16,7 @@ const SEARCH_DOCS = true;
16
let docsearch;
17
if (typeof window !== "undefined" && SEARCH_DOCS) {
18
docsearch = require("docsearch.js/dist/cdn/docsearch.min");
19
+ window.docsearch = docsearch;
20
} else {
21
docsearch = false;
22
}
@@ -342,6 +343,19 @@ class Header extends React.Component {
342
343
content: "{% endraw %}";
344
345
`}</style>
346
+ <script
347
+ type="text/javascript"
348
+ dangerouslySetInnerHTML={{
349
+ __html: `
350
+docsearch({
351
+ apiKey: "4b6d0afa80197db35886555b5ef4721f",
352
+ inputSelector: "#search-docs",
353
+ indexName: "graphene_python",
354
+ debug: false
355
+});
356
+`
357
+ }}
358
+ />
359
</div>
360
);
361
0 commit comments