Skip to content

Commit

Permalink
docs: update the frontmatter
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptobench committed Nov 9, 2023
1 parent 2d598a3 commit cd1bbd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .docs/summary-generator.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
---
`);

Expand Down
7 changes: 4 additions & 3 deletions .docs/typedoc-frontmatter-theme.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand All @@ -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
Expand Down

0 comments on commit cd1bbd6

Please sign in to comment.