Skip to content

Commit c98c6d6

Browse files
committed
fixup!
1 parent f184750 commit c98c6d6

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

src/generators/legacy-html/index.mjs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,13 @@ export default {
6767
`class="nav-${head.api} active`
6868
);
6969

70-
const toc = remarkRehypeProcessor.processSync(
71-
tableOfContents(nodes, {
72-
maxDepth: 4,
73-
parser: tableOfContents.parseToCNode,
74-
})
70+
const toc = String(
71+
remarkRehypeProcessor.processSync(
72+
tableOfContents(nodes, {
73+
maxDepth: 4,
74+
parser: tableOfContents.parseToCNode,
75+
})
76+
)
7577
);
7678

7779
const content = buildContent(headNodes, nodes, remarkRehypeProcessor);

src/generators/web/index.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export default {
3030

3131
defaultConfiguration: {
3232
templatePath: join(import.meta.dirname, 'template.html'),
33+
title: 'Node.js',
3334
imports: {
3435
'#config/Logo': '@node-core/ui-components/Common/NodejsLogo',
3536
},

src/generators/web/types.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { JSXContent } from '../jsx-ast/utils/buildContent.mjs';
33
export type Generator = GeneratorMetadata<
44
{
55
templatePath: string;
6+
title: string;
67
imports: Record<string, string>;
78
},
89
Generate<Array<JSXContent>, AsyncGenerator<{ html: string; css: string }>>

0 commit comments

Comments
 (0)