Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFR] Switch search engine to Algolia #3459

Merged
merged 1 commit into from
Jul 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion docs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@
<link rel="stylesheet" href="css/syntax.css">
<link rel="stylesheet" href="css/prism.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/octicons/4.4.0/font/octicons.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
</head>

<body>
<div class="book with-summary font-size-2 font-family-1">
<div id="book-summary" class="book-summary">
<nav role="navigation">
<div class="search">
<form action="#" onsubmit="search();return false;">
<form action="#" onsubmit="return false;">
<div style="display:flex;align-items:center;">
<i class="octicon octicon-search"></i>
<input type="text" name="q" id="query" size="31" maxlength="255" value="" placeholder="Search...">
Expand Down Expand Up @@ -878,6 +879,14 @@
</script>
<script src="js/prism.js"></script>
<script src="js/menu.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
<script type="text/javascript"> docsearch({
apiKey: '32f254b1de6a25a96665d1229b6eb8f7',
indexName: 'marmelab-react-admin',
inputSelector: '#query',
debug: false // Set debug to true if you want to inspect the dropdown
});
</script>
</body>

</html>
Loading