File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
src/tooling/docs-assembler/Navigation Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,18 @@ FileNavigationItem fileItem when fileItem.Model is MarkdownFile markdownFile
123123 DocumentationGroup group when group . Index is MarkdownFile indexFile
124124 => indexFile . YamlFrontMatter ? . Description ,
125125
126- _ => null
126+ // For table of contents trees (inherits from DocumentationGroup, but handled explicitly)
127+ TableOfContentsTree tocTree when tocTree . Index is MarkdownFile indexFile
128+ => indexFile . YamlFrontMatter ? . Description ,
129+
130+ // Cross-repository links don't have descriptions in frontmatter
131+ CrossLinkNavigationItem => null ,
132+
133+ // API-related navigation items (these don't have markdown frontmatter)
134+ // Check by namespace to avoid direct assembly references
135+ INavigationItem item when item . GetType ( ) . FullName ? . StartsWith ( "Elastic.ApiExplorer." , StringComparison . Ordinal ) == true => null ,
136+
137+ // Throw exception for any unhandled navigation item types
138+ _ => throw new InvalidOperationException ( $ "Unhandled navigation item type: { navigationItem . GetType ( ) . FullName } ")
127139 } ;
128140}
You can’t perform that action at this time.
0 commit comments