Skip to content

Commit

Permalink
Merge pull request #3459 from marmelab/doc-algolia
Browse files Browse the repository at this point in the history
[RFR] Switch search engine to Algolia
  • Loading branch information
djhi authored Jul 25, 2019
2 parents f4ad22c + 7ea3e27 commit 4d3d7c6
Show file tree
Hide file tree
Showing 2 changed files with 173 additions and 171 deletions.
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

0 comments on commit 4d3d7c6

Please sign in to comment.