3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-23 09:35:02 +00:00

testing 2.0

This commit is contained in:
metal 2021-09-06 14:18:37 +00:00 committed by GitHub
parent 1d967a51d2
commit 43e42ba7c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,12 +5,7 @@ export function generateTemplateMarkdown(definitions: TemplateFunction[]): strin
.map(def => { .map(def => {
const usage = def.signature ?? `(${def.arguments.join(", ")})`; const usage = def.signature ?? `(${def.arguments.join(", ")})`;
const exampl = def.examples ? def.examples.map(ex => `> ${ex}`).join("\n") : ""; const exampl = def.examples ? def.examples.map(ex => `> ${ex}`).join("\n") : "";
return ` return `#### ${def.name}\n\`{${def.name}${usage}}\`\n**${def.description}**\n${exampl}`;
#### ${def.name}
\`{${def.name}${usage}}\`
**${def.description}**
${exampl}
`;
}) })
.join("\n\n"); .join("\n\n");
} }