File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 } ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import type { JSXContent } from '../jsx-ast/utils/buildContent.mjs';
33export 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 } > >
You can’t perform that action at this time.
0 commit comments