mirror of
https://github.com/minio/docs.git
synced 2025-07-28 19:42:10 +03:00
Replace Algolia DocSearch with InstantSearch (#621)
- Rendered only the relevant search results that has the match-level of either `full` or `partial`. - Added refinements to display results from other platforms (Active platform is selected by default). - Better title and hierarchical display.  - Added icons to represent the hierarchy level.  - Relevant results on full/partial match queries. <img width="595" alt="Screenshot 2022-10-27 at 12 09 26" src="https://user-images.githubusercontent.com/13393018/198228440-3a7b52a6-9f33-4778-a2ab-15b1454ede99.png"> - TODO: Keyboard shortcut to trigger/focus the search modal. (Will address this with a new PR)
This commit is contained in:
@ -260,8 +260,10 @@ html_static_path = ['_static']
|
||||
html_css_files = ['css/main.min.css', 'custom.css']
|
||||
|
||||
html_js_files = [
|
||||
('https://cdn.jsdelivr.net/npm/@docsearch/js@3', {'defer': 'defer'}),
|
||||
('https://cdn.jsdelivr.net/npm/algoliasearch@4/dist/algoliasearch-lite.umd.js', {'defer': 'defer'}),
|
||||
('https://cdn.jsdelivr.net/npm/instantsearch.js@4', {'defer': 'defer'}),
|
||||
('js/main.js', {'defer': 'defer'}),
|
||||
('js/instantSearch.js', {'defer': 'defer'}),
|
||||
]
|
||||
|
||||
# Add https://www.min.io/robots.txt to html_extra_path list once available.
|
||||
|
Reference in New Issue
Block a user