fix: fix docs og gen failing for versioned and localized docs

Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>
This commit is contained in:
Joshua Castle
2024-03-23 15:02:06 -07:00
parent 9f59bdeda1
commit 841c9f408b
@@ -88,6 +88,6 @@ export class DocsPlugin {
}
getHtmlPath = (doc: Partial<DocsPageData>) =>
doc.metadata?.permalink &&
path.join(this.context.outDir, doc.metadata.permalink, 'index.html')
doc.metadata?.slug &&
path.join(this.context.outDir, doc.metadata.slug, 'index.html')
}