docs: improve content of workflows reference overview page (#11045)
This commit is contained in:
+1
@@ -47,6 +47,7 @@ const coreFlowsOptions: FormattingOptionsType = {
|
||||
frontmatterData: {
|
||||
slug: "/references/medusa-workflows/{{alias}}",
|
||||
sidebar_label: "{{alias}}",
|
||||
sidebar_description: "{{summary}}",
|
||||
},
|
||||
reflectionTitle: {
|
||||
kind: false,
|
||||
|
||||
+7
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user