Skip to content

Commit 9fcf4c2

Browse files
committed
Add metadata
1 parent d26297c commit 9fcf4c2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/build-docs.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,9 @@ export async function build(config: BuildConfig, store: Store = createBlankStore
765765
doc.file.filePathInDocsFolder,
766766
`---
767767
template: wide
768+
metadata:
769+
title: ${doc.frontmatter.title}
770+
description: ${doc.frontmatter.description}
768771
---
769772
<SDKDocRedirectPage title="${doc.frontmatter.title}"${doc.frontmatter.description ? ` description="${doc.frontmatter.description}" ` : ' '}href="${scopeHrefToSDK(config)(doc.file.href, ':sdk:')}" sdks={${JSON.stringify(doc.sdk)}} />`,
770773
)
@@ -773,6 +776,9 @@ template: wide
773776
`~/${doc.file.filePathInDocsFolder}`,
774777
`---
775778
template: wide
779+
metadata:
780+
title: ${doc.frontmatter.title}
781+
description: ${doc.frontmatter.description}
776782
---
777783
<SDKDocRedirectPage instant title="${doc.frontmatter.title}"${doc.frontmatter.description ? ` description="${doc.frontmatter.description}" ` : ' '}href="${scopeHrefToSDK(config)(doc.file.href, ':sdk:')}" sdks={${JSON.stringify(doc.sdk)}} />`,
778784
)

0 commit comments

Comments
 (0)