Skip to content

Commit

Permalink
Fix(?)
Browse files Browse the repository at this point in the history
  • Loading branch information
SenjeyB committed Nov 26, 2024
1 parent 5fad439 commit 27def4d
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions src/commands/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,14 +311,13 @@ function generateAbstractPage(abstract) {
<body>
<header>
<h1>Abstract: ${abstract.name}</h1>
${abstract.parent
? `<p>
Parent: <a href="${sanitizeFileName(abstract.parent.name)}.html">
${abstract.parent.name}
</a>
</p>`
: ''}
${abstract.parent ?
`<p>

Check failure on line 315 in src/commands/docs.js

View workflow job for this annotation

GitHub Actions / build (ubuntu-24.04, 17, 16)

Expected indentation of 4 spaces but found 6
Parent: <a href="${sanitizeFileName(abstract.parent.name)}.html">
${abstract.parent.name}
</a>
</p>` :
''}
</header>
${abstract.comments ? `<section class="comments">${commentsHtml}</section>` : ''}
Expand Down Expand Up @@ -375,9 +374,9 @@ function generateIndexPage(allAbstracts) {
<tr>
<td><a href="${sanitizeFileName(abs.name)}.html" class="full-link">${abs.name}</a></td>
<td>
${abs.comments
? marked.parse(preprocessMarkdown(abs.comments))
: ''}
${abs.comments ?
marked.parse(preprocessMarkdown(abs.comments)) :

Check failure on line 378 in src/commands/docs.js

View workflow job for this annotation

GitHub Actions / build (ubuntu-24.04, 17, 16)

Expected indentation of 4 spaces but found 16
''}

Check failure on line 379 in src/commands/docs.js

View workflow job for this annotation

GitHub Actions / build (ubuntu-24.04, 17, 16)

Expected indentation of 4 spaces but found 14
</td>
</tr>
`).join('\n')}
Expand Down Expand Up @@ -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 = [];
Expand Down

0 comments on commit 27def4d

Please sign in to comment.