Skip to content
Snippets Groups Projects
Unverified Commit 6d5f4a5c authored by Michael Kriese's avatar Michael Kriese Committed by GitHub
Browse files

docs: fix preset layout (#13377)

- add newline after preset json
- declare preset json as json
parent da7092e0
No related branches found
No related tags found
No related merge requests found
...@@ -48,10 +48,10 @@ export async function generatePresets(dist: string): Promise<void> { ...@@ -48,10 +48,10 @@ export async function generatePresets(dist: string): Promise<void> {
} else { } else {
logger.warn(`Preset ${name}:${preset} has no description`); logger.warn(`Preset ${name}:${preset} has no description`);
} }
body += '\n```\n'; body += '\n```json\n';
body += JSON.stringify(value, null, 2); body += JSON.stringify(value, null, 2);
body += '\n```\n'; body += '\n```\n';
body += '----\n'; body += '\n----\n';
if (body.includes('{{arg0}}')) { if (body.includes('{{arg0}}')) {
header += '(`<arg0>`'; header += '(`<arg0>`';
if (body.includes('{{arg1}}')) { if (body.includes('{{arg1}}')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment