website: Update nav sidebar to take advantage of new terraform.io features #8224
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.
Reasoning for docs update:
The nav sidebar for the AWS provider docs is very large and hard to get a handle on. It's much nicer if we default the data source/resource sections to collapsed and expand them dynamically... which is now possible, as of this afternoon. (hashicorp/terraform-website#741, hashicorp/terraform-website#744)
(Without this PR, people can still choose to collapse the sections themselves. This PR is just about defaulting the sections to closed.)
Here's a gif:
sidebar_current()
— no longer need it for activatingthe current sections. It's inert now, so it doesn't make any functional difference, but reducing noise can make the sidebar easier to maintain.
be opened dynamically now. (The guides section is small and important, so it
can stay open if you'd like.)
cmd-F the entire list of resources.
Relevant Terraform version: n/a.
Community Note