docs: improve content of workflows reference overview page (#11045)

This commit is contained in:
Shahed Nasser authored and GitHub committed 2025-01-20 10:54:32 +02:00
1 parent 66898124b1
commit d089852ce3
340 files changed
+2151 -400

No files matched your search

@@ -47,6 +47,7 @@ const coreFlowsOptions: FormattingOptionsType = {
frontmatterData: {
slug: "/references/medusa-workflows/{{alias}}",
sidebar_label: "{{alias}}",
sidebar_description: "{{summary}}",
},
reflectionTitle: {
kind: false,
@@ -21,6 +21,13 @@ export function replaceTemplateVariables(
reflection.parent?.parent?.name || ""
)
.replaceAll("{{kind}}", getKindAsText(reflection.kind))
.replaceAll(
"{{summary}}",
reflection.comment?.blockTags
.find((tag) => tag.tag === "@summary")
?.content.map((content) => content.text)
.join(" ") || ""
)
}
export function getKindAsText(kind: ReflectionKind) {