Skip to content
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

Feature offline search #23

Merged

Conversation

MarshallRJ
Copy link

@MarshallRJ MarshallRJ commented Aug 5, 2024

I have implemented a offline search using dousaurus-lunr-seach plugin.

The AI search is still shown. The offline search appears on the left while the other nav items are shown on the right.

I implemented the ai search as a custom nav item as per this active Pull request on dousaurus.

Things to note:

  • The initial load size of the page has now increased (my testing shows it at 4.8MB when it was 1.1MB without the offline search)

  • The offline search only works on the production build (so you need to do "npm run build" then "npm run serve" to test it)

@MarshallRJ
Copy link
Author

I updated the README to warn that the search is not available when running in development mode

@OmolemoBlessingLethuloe OmolemoBlessingLethuloe merged commit cde89f5 into shesha-io:main Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants