Skip to content

Commit

Permalink
bootstraping PR as jquery/api.jquery.com#1104
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylvain Pace committed Aug 28, 2018
1 parent 2611376 commit 3ced3de
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
16 changes: 16 additions & 0 deletions themes/jquery/css/docsearch.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* Custom DocSeach CSS to adapt the generic one
* See https://community.algolia.com/docsearch/styling.html for more info
*/

nav#main .searchform {
text-shadow: none;
}

.searchform label {
width: 100%;
display: block;
}

.algolia-autocomplete {
width: 99%;
}
10 changes: 10 additions & 0 deletions themes/jquery/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@

<script src="https://use.typekit.net/wde1aof.js"></script>
<script>try{Typekit.load();}catch(e){}</script>
<!-- at the end of the HEAD -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/docsearch.css">

<!-- at the end of the BODY -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js" async onload="docsearch({apiKey: '3cfde9aca378c8aab554d5bf1b23489b',
indexName: 'jquery',
inputSelector: 'input[name=\'s\']',
debug: false // Set debug to true if you want to inspect the dropdown
})"></script>

<?php
if ( is_singular() && get_option( 'thread_comments' ) )
Expand Down

0 comments on commit 3ced3de

Please sign in to comment.