From cd1bbd6063559b2f8008c86a1d9db6416de80156 Mon Sep 17 00:00:00 2001 From: Phillip Jensen Date: Thu, 9 Nov 2023 11:08:14 +0100 Subject: [PATCH] docs: update the frontmatter --- .docs/summary-generator.cjs | 2 +- .docs/typedoc-frontmatter-theme.cjs | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.docs/summary-generator.cjs b/.docs/summary-generator.cjs index fa177f315..012acc63b 100644 --- a/.docs/summary-generator.cjs +++ b/.docs/summary-generator.cjs @@ -34,7 +34,7 @@ async function prepareDocAnchor(docsDir, type, file) { logStream.write(`--- title: golem-js API reference overview description: Dive into the content overview of the Golem-JS API reference. -type: reference +type: JS API Reference --- `); diff --git a/.docs/typedoc-frontmatter-theme.cjs b/.docs/typedoc-frontmatter-theme.cjs index 97e0a8c09..3711c7af8 100644 --- a/.docs/typedoc-frontmatter-theme.cjs +++ b/.docs/typedoc-frontmatter-theme.cjs @@ -10,11 +10,12 @@ class ModifiedHugoTheme extends HugoTheme { onHugoPageEnd(page) { const yamlVars = { - title: `${typedoc.ReflectionKind[page.model.kind]} ${this.getPageTitle(page)} - golem-js API Reference`, + title: `${typedoc.ReflectionKind[page.model.kind]} ${this.getPageTitle(page)}`, + pageTitle: `${typedoc.ReflectionKind[page.model.kind]} ${this.getPageTitle(page)} - golem-js API Reference`, description: `Explore the detailed API reference documentation for the ${ typedoc.ReflectionKind[page.model.kind] } ${this.getPageTitle(page)} within the golem-js SDK for the Golem Network.`, - type: "reference", + type: "JS API Reference", }; page.contents && (page.contents = this.prependYAML(page.contents, yamlVars)); } @@ -31,7 +32,7 @@ class ModifiedHugoTheme extends HugoTheme { return ( "---\n" + Object.entries(yamlVars) - .map(([key, value]) => `${key}: "${value}"`) + .map(([key, value]) => `${key}: ${value}`) .join("\n") + "\n---\n" + contents