This commit is contained in:
Evan Simkowitz
2024-10-08 14:49:09 -04:00
parent e0852296b6
commit e56fa08104
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -50,7 +50,9 @@ class DocsPlugin {
const bar = progress.defaultBar();
bar.start(this.docs.length, 0, { prefix: 'rendering images', suffix: '-' });
for (const doc of this.docs) {
console.log("doc", doc);
if (!doc?.metadata.permalink) {
continue;
}
const document = new document_1.Document(this.getHtmlPath(doc));
bar.update({ suffix: doc.metadata.permalink });
await document.load();
+3 -1
View File
@@ -68,7 +68,9 @@ export class DocsPlugin {
const bar = progress.defaultBar()
bar.start(this.docs.length, 0, {prefix: 'rendering images', suffix: '-'})
for (const doc of this.docs) {
console.log("doc", doc)
if (!doc?.metadata.permalink) {
continue;
}
const document = new Document(this.getHtmlPath(doc)!)
bar.update({ suffix: doc.metadata.permalink })