File tree 6 files changed +18201
-15993
lines changed
typescript/[version]/[[...slug]]
6 files changed +18201
-15993
lines changed Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -85,7 +85,8 @@ export function TypedocSummary(props: {
85
85
< Heading
86
86
key = { Math . random ( ) }
87
87
level = { s . depth }
88
- id = { slugger . slug ( s . children [ 0 ] ?. data ?. hName ?? "" , false ) }
88
+ // biome-ignore lint/suspicious/noExplicitAny: complex type
89
+ id = { slugger . slug ( ( s . children [ 0 ] as any ) ?. value ?? "" , false ) }
89
90
>
90
91
< TypedocSummary summary = { s . children } />
91
92
</ Heading >
Original file line number Diff line number Diff line change @@ -410,12 +410,17 @@ export function getExtensionName(
410
410
extensionBlockTag : BlockTag ,
411
411
) : string | undefined {
412
412
try {
413
- const extensionNameString =
414
- extensionBlockTag ?. summary ?. [ 0 ] ?. data ?. hName || "Common" ;
415
-
416
- if ( typeof extensionNameString === "string" && extensionNameString ) {
417
- return extensionNameString ;
413
+ const summary = extensionBlockTag . summary ?. [ 0 ] ;
414
+ if ( summary && "children" in summary ) {
415
+ const firstChild = summary . children [ 0 ] ;
416
+ if ( firstChild && "value" in firstChild ) {
417
+ const extensionNameString = firstChild . value || "Common" ;
418
+ if ( typeof extensionNameString === "string" && extensionNameString ) {
419
+ return extensionNameString ;
420
+ }
421
+ }
418
422
}
423
+ return undefined ;
419
424
} catch {
420
425
return undefined ;
421
426
}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ export function uniqueSlugger(options: {
2
2
base : string ;
3
3
isUnique : ( slug : string ) => boolean ;
4
4
} ) {
5
- const limit = 10 ;
5
+ const limit = 20 ;
6
6
const { base, isUnique } = options ;
7
7
8
8
// if slug is unique, save it and return
Original file line number Diff line number Diff line change @@ -12,6 +12,5 @@ const config = getTDocPage({
12
12
} ) ;
13
13
14
14
export default config . default ;
15
- // TODO: fix duplicate slugs
16
- // export const generateStaticParams = config.generateStaticParams;
15
+ export const generateStaticParams = config . generateStaticParams ;
17
16
export const generateMetadata = config . generateMetadata ;
You can’t perform that action at this time.
0 commit comments