Skip to content

Conversation

@Mpdreamz
Copy link
Member

@Mpdreamz Mpdreamz commented Jul 8, 2025

This allows documentation sets to use toc.yml files for grouping purposes without them being declared in navigation.yml as long as their parent navigation element is.

This leniency allows for e.g docs-content to partition docs folders for other teams without those teams having to worry about the larger navigation.

@Mpdreamz Mpdreamz requested a review from a team as a code owner July 8, 2025 10:28
@Mpdreamz Mpdreamz added the fix label Jul 8, 2025
@Mpdreamz Mpdreamz self-assigned this Jul 8, 2025
@Mpdreamz Mpdreamz added the fix label Jul 8, 2025
{
navigationRoot = null;
navigationRootSource = null;
if (!assembleSources.TocTopLevelMappings.TryGetValue(navigationSource, out var topLevelMapping))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Long term all of this will go away and we can just query the navigation itself..

Copy link
Member

@reakaleek reakaleek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

I tested it locally and it fixes the missing navigation in opentelemetry.

@Mpdreamz Mpdreamz merged commit cbf10db into main Jul 8, 2025
19 checks passed
@Mpdreamz Mpdreamz deleted the fix/allow-nested-tocs-to-resolve-to-their-parent branch July 8, 2025 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants