diff --git a/src/includer/index.ts b/src/includer/index.ts index 598ae76..1b08b36 100644 --- a/src/includer/index.ts +++ b/src/includer/index.ts @@ -322,6 +322,7 @@ function handleEndpointRender(endpoint: V3Endpoint, pathPrefix?: string): YfmToc href: path, name: sectionName(endpoint), hidden: endpoint.hidden, + deprecated: endpoint.deprecated, } as YfmToc; } diff --git a/src/includer/models.ts b/src/includer/models.ts index e4e9bfe..eddad31 100644 --- a/src/includer/models.ts +++ b/src/includer/models.ts @@ -41,6 +41,7 @@ export interface YfmToc extends Filter { id?: string; singlePage?: boolean; hidden?: boolean; + deprecated?: boolean; } export interface YfmTocItem extends Filter {