Skip to content

Commit e9d1c64

Browse files
MeAkibAndrewKushnir
authored andcommitted
docs(docs-infra): clean up TODO comment, unused imports, and helper function
1 parent ad88c72 commit e9d1c64

File tree

4 files changed

+1
-11
lines changed

4 files changed

+1
-11
lines changed

adev/shared-docs/pipeline/api-gen/rendering/index.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {existsSync, mkdirSync, readFileSync, writeFileSync} from 'fs';
9+
import {mkdirSync, readFileSync, writeFileSync} from 'fs';
1010
import path from 'path';
1111
import {CliCommand} from './cli-entities.mjs';
1212
import {DocEntry} from './entities.mjs';

adev/shared-docs/pipeline/api-gen/rendering/styling/css-classes.mts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
// TODO(jelbourn): all of these CSS classes should use the `docs-` prefix.
10-
119
export const API_REFERENCE_CONTAINER = 'docs-api';
1210

1311
export const PARAM_KEYWORD_CLASS_NAME = 'docs-param-keyword';

adev/shared-docs/pipeline/api-gen/rendering/templates/class-member.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import {
1717
} from '../entities/categorization.mjs';
1818
import {MemberEntryRenderable, MethodEntryRenderable} from '../entities/renderables.mjs';
1919
import {
20-
PARAM_KEYWORD_CLASS_NAME,
2120
REFERENCE_MEMBER_CARD,
2221
REFERENCE_MEMBER_CARD_BODY,
2322
REFERENCE_MEMBER_CARD_HEADER,

adev/shared-docs/pipeline/api-gen/rendering/templates/header-api.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,6 @@ function tagInVersionString(label: string, tag: {version: string | undefined} |
123123
return <>{label}</>;
124124
}
125125

126-
function tagInVersionTooltip(
127-
label: string,
128-
tag: {version: string | undefined} | undefined,
129-
): string {
130-
return tag?.version ? `${label} since ${tag.version}` : label;
131-
}
132-
133126
function getEntryTypeDisplayName(entryType: EntryType | string): string {
134127
switch (entryType) {
135128
case EntryType.NgModule:

0 commit comments

Comments
 (0)