Skip to content

Multi input for a DocSearch #230

@LukyVj

Description

@LukyVj

Hello DocSearch team!
I have a request for you, for a next DocSearch release.

Apparently Algolia Autocomplete is able to do this, it would be amazing to be able to do it for docsearch too.

Such API could do the trick:

docsearch({
  apiKey: 'xxxxxxxxxxxxxxxxxxxxxx',
  indexName: 'xxxxxxxxxxxxx',
  inputSelector: '#searchbox, #searchbox-mobile'
});

Why we need this?

There is a running issue since the begining of DocSearch, and it's the ability of making a responsive version of it.

Because a lot of documentations are made with such structure:

Desktop:

[ Sidebar ] [ Main Content Area ] 
[ Sidebar ] [ Main Content Area ] 
[ Sidebar ] [ Main Content Area ] 
[ Sidebar ] [ Main Content Area ] 

Mobile:

[ Sidebar as navigation] 
[ Main Content Area ] 
[ Main Content Area ] 
[ Main Content Area ] 

This multi input feature would help us making responsive DocSearch implementations, and avoid us to loose time by performing CSS Gymnastic to make sure the input behaviour is still perfect.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions