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:
parent
1d967a51d2
commit
43e42ba7c7
1 changed files with 1 additions and 6 deletions
|
@ -5,12 +5,7 @@ export function generateTemplateMarkdown(definitions: TemplateFunction[]): strin
|
|||
.map(def => {
|
||||
const usage = def.signature ?? `(${def.arguments.join(", ")})`;
|
||||
const exampl = def.examples ? def.examples.map(ex => `> ${ex}`).join("\n") : "";
|
||||
return `
|
||||
#### ${def.name}
|
||||
\`{${def.name}${usage}}\`
|
||||
**${def.description}**
|
||||
${exampl}
|
||||
`;
|
||||
return `#### ${def.name}\n\`{${def.name}${usage}}\`\n**${def.description}**\n${exampl}`;
|
||||
})
|
||||
.join("\n\n");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue