Skip to content

Commit

Permalink
feat: add deprecated option in toc item
Browse files Browse the repository at this point in the history
  • Loading branch information
v8tenko committed Nov 19, 2024
1 parent 26d5501 commit c2c93ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/includer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ function handleEndpointRender(endpoint: V3Endpoint, pathPrefix?: string): YfmToc
href: path,
name: sectionName(endpoint),
hidden: endpoint.hidden,
deprecated: endpoint.deprecated,
} as YfmToc;
}

Expand Down
1 change: 1 addition & 0 deletions src/includer/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export interface YfmToc extends Filter {
id?: string;
singlePage?: boolean;
hidden?: boolean;
deprecated?: boolean;
}

export interface YfmTocItem extends Filter {
Expand Down

0 comments on commit c2c93ac

Please sign in to comment.