Skip to content

Add search to docs#530

Merged
emmatown merged 16 commits into
masterfrom
docsearch
Jan 11, 2018
Merged

Add search to docs#530
emmatown merged 16 commits into
masterfrom
docsearch

Conversation

@emmatown
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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