-
Notifications
You must be signed in to change notification settings - Fork 131
Adding Algolia Autocomplete search bar to /docs #658
Adding Algolia Autocomplete search bar to /docs #658
Conversation
static/autocomplete-stellar.css
Outdated
|
||
.aa-Panel button { | ||
background-color: rgba(62, 27, 219, 0.04); | ||
padding-top: 8px; |
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.
Let's use rem
for things like padding, margin, and font size
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.
New search looks good! 🎉 Could you please remove everything from the old search (DocSearch)? That way it won't be confusing which one is used and avoid potential conflicts with the new one. 🙏
export const DOCSEARCH_DOCS_KEY = "a90bee98943eff1ca1adfdaac1e434d8"; | ||
export const DOCSEARCH_DOCS_INDEX_NAME = "stellar"; |
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.
I think we can remove these now.
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.
Thanks for the review! The new search is for /docs pages only, so I think we'll still need DocSearch for the /api pages for now.
Adding Algolia Autocomplete search bar to /docs with customized content preview.
The
AutocompleSearch
component uses Algolia css and custom css, which is in thestatic/autocomplete-stellar.css
file.All keys are in
config.js
file and are public and production keys.Screen size >= 680px


Top
Bottom
Screen size < 680px
