This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The navigation components were all stuffed into a single file. I refactored them into multiple files so that it's easier to work with just parts of the navigation implementation. The components were then modified to expand/collapse navigation depending on the page open, and what is clicked on. As we add more documentation content, navigation that shows everything all of the time will get awfully long and noisy. This keeps it more compact.
This code was ported over with minimal changes from the code for the EEAP site, except for removing some of the code related to gated content. This means that the navigation component does not support disabled items. These are items that one wants to appear in the navigation, but one doesn't want to be clickable. One use case for this is when there is content that is planned or in development, the navigation items for it, disabled, can be released ahead of the content itself, in order to tease the upcoming release of that content.
Description
StaticNav.tsx becomes StaticNav.tsx, NavGroup.tsx, and NavItem.tsx. Navigation opens and closes based on which page is open, and where one clicks in the navigation.
PR Checklist: