-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Implement package search bar on docs website #270
Conversation
93b3a50
to
2fbe4ec
Compare
Nice! Maybe we could use the equivalent of |
@arcanis Yep, I agree. I don't like current logic of url replacement. It would be nice to simplify it |
Master is fixed! 👍 |
Yep, I saw in the chat :) and rebased already :) |
51e94ca
to
521dbd0
Compare
return ((href === '/' && ['/', '/package'].includes(location.pathname)) || | ||
(href !== '/' && location.pathname.startsWith(href))) ? | ||
{ className: 'active' } : | ||
null; |
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'm not too sure I understand the intent here - might be worth a comment?
This PR adds website package search bar, by porting yarn v1 search bar source code and upgrading it to use Hooks and Styled Components