1
0
mirror of https://github.com/minio/docs.git synced 2025-04-21 08:05:59 +03:00
Rushan 376f37f69e
Add search page (#687)
- Default Sphinx search page has been replaced with Algolia's 
- Enabled routing to sync the search results with URL

**Preview:**
<img width="1458" alt="Screenshot 2022-12-30 at 14 47 28"
src="https://user-images.githubusercontent.com/13393018/210061993-c906461e-87e2-426f-b956-462cfa77ed40.png">

**How to test:**
1. Click on a search result, navigate back using the browser back button
and check whether the search result modal is open and available.
2. Type a search keyword and press the enter key to navigate to the
search results page, where you can find all the results listed.

Note: You might need to start the local web server on the exact build
sub-directory to test the point number 2.
`build/[branch]/[platform]/html/` - ✔️
`build/` - 
2022-12-30 12:42:11 -06:00

13 lines
377 B
HTML

<div class="content__toc scrollbar scrollbar--hover">
<button data-aside-toggle="doc" class="icon" type="button">
{%- include "icons/menu.html" %} TOC Menu
</button>
<div id="content-toc"></div>
{%- if pagename != "search" %}
<button class="icon search-toggle" type="button">
{%- include "icons/search.html" %} Search
</button>
{%- endif %}
</div>