Skip to content

Commit 7caa18d

Browse files
author
Sylvain Pace
authored
feat(jqueryui): add search on documentation with DocSearch as https://jquery.com/
1 parent fde0aab commit 7caa18d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

themes/jquery/footer-ui.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
</footer>
3737

3838
<?php wp_footer(); ?>
39+
<!-- at the end of the BODY -->
40+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js" onload="docsearch({apiKey: '2fce35e56784bbb48c78d105739190c2',
41+
indexName: 'jqueryui',
42+
inputSelector: 'input[name=\'s\']',
43+
debug: true // Set debug to true if you want to inspect the dropdown
44+
})" async></script>
3945

4046
</body>
4147
</html>

0 commit comments

Comments
 (0)