File tree Expand file tree Collapse file tree 3 files changed +4
-12
lines changed
lit-dev-content/site/_includes
lit-dev-tools-cjs/src/api-docs Expand file tree Collapse file tree 3 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 125
125
{%- elif t.location -%}
126
126
{{- locationLink(t.location, t.name) -}}
127
127
128
- {%- elif t.externalLocation -%}
129
- {{- externalLink(t.externalLocation.url , t.name) -}}
128
+ {%- elif t.externalUrl -%}
129
+ {{- externalLink(t.externalUrl , t.name) -}}
130
130
131
131
{%- elif t.type == "literal" -%}
132
132
{%- if t.value == null -%}
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import {
15
15
SourceReference ,
16
16
ExtendedSourceReference ,
17
17
Location ,
18
- ExternalLocation ,
19
18
MigrationComment ,
20
19
} from './types.js' ;
21
20
import { ReflectionKind } from 'typedoc' ;
@@ -434,9 +433,8 @@ export class ApiDocsTransformer {
434
433
typeof val === 'string' &&
435
434
symbolToExternalLink . has ( val )
436
435
) {
437
- ( node as { externalLocation ?: ExternalLocation } ) . externalLocation = {
438
- url : symbolToExternalLink . get ( val ) ! ,
439
- } ;
436
+ ( node as { externalUrl ?: string } ) . externalUrl =
437
+ symbolToExternalLink . get ( val ) ;
440
438
} else if ( ! ( isTopLevel && key === 'children' ) ) {
441
439
// We already recurse into children of top-level reflections in our main
442
440
// traversal, no need to also do it here.
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ export interface MigrationComment
28
28
29
29
export interface ExtendedDeclarationReflection extends DeclarationReflection {
30
30
location ?: Location ;
31
- externalLocation ?: ExternalLocation ;
32
31
entrypointSources ?: Array < ExtendedSourceReference > ;
33
32
heritage ?: Array < { name : string ; location ?: Location } > ;
34
33
expandedCategories ?: Array < {
@@ -58,11 +57,6 @@ export interface Location {
58
57
excludeFromTOC ?: boolean ;
59
58
}
60
59
61
- /** A link to e.g. MDN. */
62
- export interface ExternalLocation {
63
- url : string ;
64
- }
65
-
66
60
export interface ApiDocsConfig {
67
61
/**
68
62
* Git repo remote URL.
You can’t perform that action at this time.
0 commit comments