Skip to content

Commit 05bc1eb

Browse files
committed
feat: add deprecated option in toc item
1 parent 26d5501 commit 05bc1eb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/includer/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ function handleEndpointRender(endpoint: V3Endpoint, pathPrefix?: string): YfmToc
322322
href: path,
323323
name: sectionName(endpoint),
324324
hidden: endpoint.hidden,
325+
deprecated: endpoint.deprecated,
325326
} as YfmToc;
326327
}
327328

src/includer/models.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export interface YfmToc extends Filter {
4141
id?: string;
4242
singlePage?: boolean;
4343
hidden?: boolean;
44+
deprecated?: boolean;
4445
}
4546

4647
export interface YfmTocItem extends Filter {

0 commit comments

Comments
 (0)