mirror of
https://github.com/wavetermdev/docusaurus-og.git
synced 2026-08-05 13:46:35 -07:00
bail
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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 })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user