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

This commit is contained in:
Shahed Nasser
2025-01-20 10:54:32 +02:00
committed by GitHub
parent 66898124b1
commit d089852ce3
340 changed files with 2151 additions and 400 deletions
@@ -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) {