Correct the docs navigation links when running component status migrator #1276
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.
part of #676
problem
when running the
component_status_migrator
thor task, the docs site navigation file (docs/src/@primer/gatsby-theme-doctocat/nav.yml
) is not being updated to reflect component status and name changes.for example, running
bundle exec thor component_status_migrator ButtonGroup --status beta
should change thenav.yml
entry forButtonGroup
to have a url of/components/beta/buttongroup
. this change is not occurring currently.solution
this PR updates the
component_status_migrator.thor
file to ensure thenav.yml
navigation is updated correctly.output
after running
bundle exec thor component_status_migrator ButtonGroup --status beta
thedocs/src/@primer/gatsby-theme-doctocat/nav.yml
file now has the following entry for ButtonGroup:screenshot
docs site, after running status migrator: