docs: add search to workflows reference (#11054)
* docs: add search to workflows reference * fix error
This commit is contained in:
1 parent
5b9cb5a2be
commit
af350c3a8b
15 files changed
+349
-112
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import clsx from "clsx"
|
||||
import { BookIcon, Card, IconHeadline, WindowPaintbrushIcon } from "docs-ui"
|
||||
import { Card, IconHeadline, WindowPaintbrushIcon } from "docs-ui"
|
||||
import { Book } from "@medusajs/icons"
|
||||
import { basePathUrl } from "../../../utils/base-path-url"
|
||||
import HomepageCodeTabs from "../CodeTabs"
|
||||
|
||||
@@ -35,7 +36,7 @@ const HomepageTopSection = () => {
|
||||
>
|
||||
<div className="flex flex-col gap-1.5 pt-1 xs:pt-4 lg:py-4">
|
||||
<div className="flex flex-col gap-[10px]">
|
||||
<IconHeadline title="Documentation" icon={<BookIcon />} />
|
||||
<IconHeadline title="Documentation" icon={<Book />} />
|
||||
<h2 className="text-medusa-fg-base text-h1 text-pretty w-full md:w-2/3 lg:w-full">
|
||||
Learn how to build Medusa projects. Explore our guides.
|
||||
</h2>
|
||||
|
||||
@@ -20,4 +20,8 @@ Through this reference, you'll learn about the available workflows and steps in
|
||||
|
||||
All workflows and steps in this reference are exported by the `@medusajs/medusa/core-flows` package.
|
||||
|
||||
<ChildDocs childLevel={2} hideItems={["Overview", "Steps"]} defaultItemsPerRow={2} />
|
||||
<ChildDocs childLevel={2} hideItems={["Overview", "Steps"]} defaultItemsPerRow={2} search={{
|
||||
enable: true,
|
||||
placeholder: "Search workflows...",
|
||||
storageKey: "medusa-workflows-reference",
|
||||
}} />
|
||||
Reference in new issue
Block a user