more checks

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