Skip to content

Conversation

@Mpdreamz
Copy link
Member

@Mpdreamz Mpdreamz commented Jul 10, 2025

This PR removes the need to keep track of NavigationSource on markdown files to render the navigation.

Previous to this we needed the keep this around to track the 'real' parent of a section once it may have been reshuffled by navigation.yml.

We now more diligently build the global navigation more truthfully and can rely on walking the current navigation items .Parent to find the proper root to render.

This includes scrubbing/skipping phantoms from the navigation.

In particular this makes ‎src/tooling/docs-assembler/Navigation/GlobalNavigationHtmlWriter.cs a whole lot simpler.

Another step to refactoring our navigation acyclic graph as the single source of truth.

cursorful-video-1752141645394.mp4

This PR removes the need to keep track of NavigationSource on markdown files to render the navigation.

Previous to this we needed the keep this around to track the 'real' parent of a section once it may have been reshuffled by `navigation.yml`.

We now more diligently build the global navigation more truthfully and can relay on walking the current navigation items `.Parent` to find the proper root to render.

This includes scrubbing/skipping phantoms from the navigation.

Another step to refactoring our navigation acyclic graph as the single source of truth.
@Mpdreamz Mpdreamz requested a review from a team as a code owner July 10, 2025 10:01
@Mpdreamz Mpdreamz added the chore label Jul 10, 2025
@Mpdreamz Mpdreamz self-assigned this Jul 10, 2025
@Mpdreamz Mpdreamz merged commit 5719f0a into main Jul 14, 2025
17 checks passed
@Mpdreamz Mpdreamz deleted the refactor/global-navigation branch July 14, 2025 10:34
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