docs: remove steps from workflows reference overview (#8595)

* docs: remove steps from workflows reference overview

* fix styling of typelist element

* fix categories with no items showing
This commit is contained in:
Shahed Nasser
2024-08-16 12:37:13 +03:00
committed by GitHub
parent f0f83afdd9
commit 559a6d70d9
3 changed files with 4 additions and 8 deletions

View File

@@ -10,4 +10,4 @@ This section of the documentation provides a reference to the workflows created
You can use these workflows in your customizations as well. They're available in the `@medusajs/core-flows` package.
<ChildDocs childLevel={2} hideItems={["Overview"]} />
<ChildDocs childLevel={2} hideItems={["Overview", "Steps"]} />

View File

@@ -176,12 +176,8 @@ export const ChildDocs = ({
/>
</>
)}
{!HeadingComponent && (
<Card
title={item.title}
href={item.type === "link" ? item.path : ""}
showLinkIcon={false}
/>
{!HeadingComponent && item.type === "link" && (
<Card title={item.title} href={item.path} showLinkIcon={false} />
)}
</React.Fragment>
)

View File

@@ -200,7 +200,7 @@ const TypeListItem = ({
/>
</CopyButton>
)}
<div className="flex gap-0.75 flex-wrap">
<div className="flex gap-0.75 flex-wrap flex-1">
<InlineCode>{decodeStr(item.name)}</InlineCode>
<span className="font-monospace text-compact-small-plus text-medusa-fg-subtle">
<MarkdownContent allowedElements={["a"]} unwrapDisallowed={true}>