chore: explain usage of slug over permalink

Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>
This commit is contained in:
Joshua Castle
2024-03-23 15:07:58 -07:00
parent 841c9f408b
commit 4906705008
@@ -88,6 +88,7 @@ export class DocsPlugin {
}
getHtmlPath = (doc: Partial<DocsPageData>) =>
// slug is used here instead of permalink because permalink already contains version and locale paths of websiteOutDir
doc.metadata?.slug &&
path.join(this.context.outDir, doc.metadata.slug, 'index.html')
}