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

Add search to docs #530

Merged
merged 16 commits into from
Jan 11, 2018
Merged

Add search to docs #530

merged 16 commits into from
Jan 11, 2018

Conversation

emmatown
Copy link
Member

@emmatown emmatown commented Jan 11, 2018

What:
Add search to docs

Why:
Closes #527

How:
Algolia DocSearch.

Checklist:

  • Documentation N/A
  • Tests N/A
  • Code complete

https://deploy-preview-530--emotion.netlify.com

path="/docs"
key={item.title}
render={() => {
return renderSidebar(item, setSidebarOpenState, docMap)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you make renderSidebar just a stateless component that you render here? I understand that using the component prop wouldn't work because you can't pass custom props. Sidebar could be a component to leverage React's diffing algorithm.

Copy link
Member

@tkh44 tkh44 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except for component nitpick.

@emmatown emmatown merged commit e063372 into master Jan 11, 2018
@emmatown emmatown deleted the docsearch branch January 11, 2018 22:32
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.

Adding search to the documentation
2 participants