docs: DX improvements to a workflow / step reference page (#10906)

This commit is contained in:
Shahed Nasser
2025-01-10 13:47:08 +02:00
committed by GitHub
parent 428fce5313
commit a126f40bbe
23 changed files with 138116 additions and 73 deletions

View File

@@ -1,6 +1,5 @@
import { Badge, DecisionProcessIcon } from "docs-ui"
import { DecisionProcessIcon, SourceCodeLink } from "docs-ui"
import { config } from "../../../../../config"
import Link from "next/link"
export type TagsOperationDescriptionSectionWorkflowBadgeProps = {
workflow: string
@@ -12,21 +11,11 @@ const TagsOperationDescriptionSectionWorkflowBadge = ({
return (
<p className="my-1">
Workflow{" "}
<Link
href={`${config.baseUrl}/resources/references/medusa-workflows/${workflow}`}
className="align-middle"
target="_blank"
rel="noreferrer"
>
<Badge
variant="neutral"
className="inline-flex hover:bg-medusa-tag-neutral-bg-hover cursor-pointer"
childrenWrapperClassName="inline-flex flex-row gap-[3px] items-center"
>
<DecisionProcessIcon />
<span>{workflow}</span>
</Badge>
</Link>{" "}
<SourceCodeLink
link={`${config.baseUrl}/resources/references/medusa-workflows/${workflow}`}
text={workflow}
icon={<DecisionProcessIcon />}
/>{" "}
is used in this API route.
</p>
)