Commit b4e2f09
authored
feat: add lunr search to navbar (#105)
**Motivation**
When going through the docs it requires to open the categories or scroll
within the documents to find something specific which takes extra time.
Adding the search functionality allows to navigate faster within the
docs.
**PR Changes**
- adds [lunar.js](https://lunrjs.com/) search to the navigation bar
**Screenshot**

**Note**
It works only in prod build so I've been doing `npm run build` and then
`http-server build` to serve the production version of docs to test it
out1 parent 8081a0a commit b4e2f09
File tree
4 files changed
+779
-0
lines changed- src/theme/SearchBar
4 files changed
+779
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
| |||
731 | 735 | | |
732 | 736 | | |
733 | 737 | | |
| 738 | + | |
734 | 739 | | |
735 | 740 | | |
736 | 741 | | |
| |||
0 commit comments