Skip to content

Commit e56fa08

Browse files
committed
bail
1 parent e085229 commit e56fa08

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

lib/server/docs.plugin.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ class DocsPlugin {
5050
const bar = progress.defaultBar();
5151
bar.start(this.docs.length, 0, { prefix: 'rendering images', suffix: '-' });
5252
for (const doc of this.docs) {
53-
console.log("doc", doc);
53+
if (!doc?.metadata.permalink) {
54+
continue;
55+
}
5456
const document = new document_1.Document(this.getHtmlPath(doc));
5557
bar.update({ suffix: doc.metadata.permalink });
5658
await document.load();

src/server/docs.plugin.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ export class DocsPlugin {
6868
const bar = progress.defaultBar()
6969
bar.start(this.docs.length, 0, {prefix: 'rendering images', suffix: '-'})
7070
for (const doc of this.docs) {
71-
console.log("doc", doc)
71+
if (!doc?.metadata.permalink) {
72+
continue;
73+
}
7274
const document = new Document(this.getHtmlPath(doc)!)
7375
bar.update({ suffix: doc.metadata.permalink })
7476

0 commit comments

Comments
 (0)