docs: added algolia guide (#11971)
* initial * finished changes * small title change * improve title * add cover
This commit is contained in:
+12705
-11483
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -164,4 +164,24 @@ A Payment Module Provider processes payments made in your Medusa store using a t
|
|||||||
className="mb-1"
|
className="mb-1"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
Learn how to create a payment provider in [this guide](/references/payment/provider).
|
Learn how to create a payment provider in [this guide](/references/payment/provider).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Search
|
||||||
|
|
||||||
|
Integrate a search engine to index and search products or other types of data in your Medusa application.
|
||||||
|
|
||||||
|
<CardList
|
||||||
|
items={[
|
||||||
|
{
|
||||||
|
href: "/integrations/guides/algolia",
|
||||||
|
title: "Algolia",
|
||||||
|
badge: {
|
||||||
|
variant: "blue",
|
||||||
|
children: "Tutorial"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]}
|
||||||
|
className="mb-1"
|
||||||
|
/>
|
||||||
@@ -6071,5 +6071,6 @@ export const generatedEditDates = {
|
|||||||
"app/troubleshooting/storefront-pak-sc/page.mdx": "2025-03-21T07:08:57.546Z",
|
"app/troubleshooting/storefront-pak-sc/page.mdx": "2025-03-21T07:08:57.546Z",
|
||||||
"app/troubleshooting/workflow-errors/step-x-defined/page.mdx": "2025-03-21T07:09:02.741Z",
|
"app/troubleshooting/workflow-errors/step-x-defined/page.mdx": "2025-03-21T07:09:02.741Z",
|
||||||
"app/troubleshooting/workflow-errors/when-then/page.mdx": "2025-03-21T08:35:45.145Z",
|
"app/troubleshooting/workflow-errors/when-then/page.mdx": "2025-03-21T08:35:45.145Z",
|
||||||
"app/how-to-tutorials/tutorials/abandoned-cart/page.mdx": "2025-03-27T17:39:52.123Z"
|
"app/how-to-tutorials/tutorials/abandoned-cart/page.mdx": "2025-03-27T17:39:52.123Z",
|
||||||
|
"app/integrations/guides/algolia/page.mdx": "2025-03-27T18:00:49.330Z"
|
||||||
}
|
}
|
||||||
@@ -823,6 +823,10 @@ export const filesMap = [
|
|||||||
"filePath": "/www/apps/resources/app/how-to-tutorials/tutorials/product-reviews/page.mdx",
|
"filePath": "/www/apps/resources/app/how-to-tutorials/tutorials/product-reviews/page.mdx",
|
||||||
"pathname": "/how-to-tutorials/tutorials/product-reviews"
|
"pathname": "/how-to-tutorials/tutorials/product-reviews"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"filePath": "/www/apps/resources/app/integrations/guides/algolia/page.mdx",
|
||||||
|
"pathname": "/integrations/guides/algolia"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"filePath": "/www/apps/resources/app/integrations/guides/resend/page.mdx",
|
"filePath": "/www/apps/resources/app/integrations/guides/resend/page.mdx",
|
||||||
"pathname": "/integrations/guides/resend"
|
"pathname": "/integrations/guides/resend"
|
||||||
|
|||||||
@@ -147,6 +147,23 @@ const generatedgeneratedIntegrationsSidebarSidebar = {
|
|||||||
"children": []
|
"children": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "category",
|
||||||
|
"title": "Search",
|
||||||
|
"initialOpen": true,
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "ref",
|
||||||
|
"path": "/integrations/guides/algolia",
|
||||||
|
"title": "Algolia",
|
||||||
|
"children": []
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -102,4 +102,16 @@ export const integrationsSidebar = [
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
type: "category",
|
||||||
|
title: "Search",
|
||||||
|
initialOpen: true,
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
type: "ref",
|
||||||
|
path: "/integrations/guides/algolia",
|
||||||
|
title: "Algolia",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -10,7 +10,12 @@ type StringInfo = {
|
|||||||
|
|
||||||
type NoteLayoutProps = NoteProps
|
type NoteLayoutProps = NoteProps
|
||||||
|
|
||||||
export const NoteLayout = ({ type, title, children }: NoteLayoutProps) => {
|
export const NoteLayout = ({
|
||||||
|
type,
|
||||||
|
title,
|
||||||
|
children,
|
||||||
|
forceMultiline = false,
|
||||||
|
}: NoteLayoutProps) => {
|
||||||
const getStringInfoFromChildren = (nodes: React.ReactNode): StringInfo => {
|
const getStringInfoFromChildren = (nodes: React.ReactNode): StringInfo => {
|
||||||
let allStringChildren = true
|
let allStringChildren = true
|
||||||
const stringChildren: string[] = []
|
const stringChildren: string[] = []
|
||||||
@@ -63,6 +68,13 @@ export const NoteLayout = ({ type, title, children }: NoteLayoutProps) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const { allStringChildren, stringChildren } = useMemo(() => {
|
const { allStringChildren, stringChildren } = useMemo(() => {
|
||||||
|
if (forceMultiline) {
|
||||||
|
return {
|
||||||
|
allStringChildren: false,
|
||||||
|
stringChildren: "",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const { allStringChildren, stringChildren } =
|
const { allStringChildren, stringChildren } =
|
||||||
getStringInfoFromChildren(children)
|
getStringInfoFromChildren(children)
|
||||||
|
|
||||||
@@ -70,7 +82,7 @@ export const NoteLayout = ({ type, title, children }: NoteLayoutProps) => {
|
|||||||
allStringChildren,
|
allStringChildren,
|
||||||
stringChildren: stringChildren.join(""),
|
stringChildren: stringChildren.join(""),
|
||||||
}
|
}
|
||||||
}, [children])
|
}, [children, forceMultiline])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ export type NoteProps = {
|
|||||||
type?: "default" | "warning" | "success" | "error" | "check" | "soon"
|
type?: "default" | "warning" | "success" | "error" | "check" | "soon"
|
||||||
title?: string
|
title?: string
|
||||||
children?: React.ReactNode
|
children?: React.ReactNode
|
||||||
|
forceMultiline?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export const Note = ({ type = "default", ...props }: NoteProps) => {
|
export const Note = ({ type = "default", ...props }: NoteProps) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user