From 27def4de5dd193f8e31953ee0e6045eff8f9bff5 Mon Sep 17 00:00:00 2001 From: SenjeyB Date: Tue, 26 Nov 2024 23:36:26 +0300 Subject: [PATCH] Fix(?) --- src/commands/docs.js | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/commands/docs.js b/src/commands/docs.js index 2ff064c..dca8bb5 100644 --- a/src/commands/docs.js +++ b/src/commands/docs.js @@ -311,14 +311,13 @@ function generateAbstractPage(abstract) {

Abstract: ${abstract.name}

- ${abstract.parent - ? `

- Parent: - ${abstract.parent.name} - -

` - - : ''} + ${abstract.parent ? + `

+ Parent: + ${abstract.parent.name} + +

` : + ''}
${abstract.comments ? `
${commentsHtml}
` : ''} @@ -375,9 +374,9 @@ function generateIndexPage(allAbstracts) { ${abs.name} - ${abs.comments - ? marked.parse(preprocessMarkdown(abs.comments)) - : ''} + ${abs.comments ? + marked.parse(preprocessMarkdown(abs.comments)) : + ''} `).join('\n')} @@ -494,7 +493,7 @@ footer { async function generateDocumentation(opts) { const skipUncommented = opts.skipUncommented || false; try { - await fs.promises.mkdir(outputDir, { recursive: true }); + await fs.promises.mkdir(outputDir, {recursive: true}); await generateCSS(); const xmirFiles = await readxmirFiles(inputDir); const allAbstracts = [];