Docusaurus: Allow Search page to be swizzled

Created on 31 Jul 2020  ·  8Comments  ·  Source: facebook/docusaurus

🚀 Feature

Add the ability to swizzle the Search page created by @docusaurus/theme-search-algolia.

Have you read the Contributing Guidelines on issues?

Yes

Motivation

Personal motivation comes from the need to wrap an auth component around search functionality, and not wanting/needing to change the overall feel of the page.

Pitch

Similar to DocPage, Search has wonderful functionality but may need to be tweaked to fit certain requirements of the dev, such as authentication, filters, and other components to make a custom solution.

feature good first issue help wanted mlh

All 8 comments

I can work on this

OK 👍

Le sam. 1 août 2020 à 18:38, Ako notifications@github.com a écrit :

I can work on this


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/docusaurus/issues/3176#issuecomment-667557095,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFW6PV2NZ62T74IA5W3ZILR6RAITANCNFSM4PP4BKUQ
.

Swizzle?? Can yo explain it more please?

Basically this is just moving the SearchPage comp to the ./theme folder so that the swizzle cli can swizzle it

Is this what I have to do?

image

yes, and very that swizzling actually works (I may be wrong, you have to test the workflow)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yanzhiwei147 picture yanzhiwei147  ·  69Comments

slorber picture slorber  ·  23Comments

arifszn picture arifszn  ·  24Comments

yangshun picture yangshun  ·  27Comments

taylorreece picture taylorreece  ·  28Comments