-
Notifications
You must be signed in to change notification settings - Fork 169
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
[documentation] Add a nice search experience to the website #416
Changes from 4 commits
892ba08
5df05ec
d076a03
c2cb501
e3f16f3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* 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%; | ||
} | ||
|
||
@media only screen and (max-width: 480px) { | ||
.ds-dropdown-menu { | ||
min-width: 100% !important; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,11 @@ | |
</footer> | ||
|
||
<?php wp_footer(); ?> | ||
|
||
<!-- at the end of the BODY --> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js" onload="docsearch({apiKey: '3cfde9aca378c8aab554d5bf1b23489b', | ||
indexName: 'jquery', | ||
inputSelector: 'input[name=\'s\']', | ||
debug: true // Set debug to true if you want to inspect the dropdown | ||
})" async></script> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We use tabs for indentation in this file, can you update it? Also, what's inside of the object should be indented more than the closing parens. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure! Done |
||
</body> | ||
</html> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file still uses spaces, please change to tabs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad. fixed