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 => {
|
.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");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue