Skip to content

Conversation

Bgreen23
Copy link
Contributor

This PR adds the expand/hide toggle to left nav menu items on the Docs & Tutorials.

@brianjo
Copy link
Contributor

brianjo commented Jan 19, 2021

Hey @Bgreen23, before I merge this, is there a way for me to have a group stay open by default?

@Bgreen23
Copy link
Contributor Author

Hey @brianjo, I'm currently working on an approach to have configurable expanded/collapsed groups. I expect to update this PR with those changes by 1/22

@brianjo
Copy link
Contributor

brianjo commented Jan 19, 2021

Hey @brianjo, I'm currently working on an approach to have configurable expanded/collapsed groups. I expect to update this PR with those changes by 1/22

Awesome. If possible, I think it would be best if expand was the default and we added code to specify collapse to individual sections. That would make it easier to configure the current content without disrupting the way the users are used to viewing it. I'm going to hold off on this PR then and we'll merge your new one. Thanks!

@Bgreen23 Bgreen23 closed this Jan 26, 2021
@Bgreen23 Bgreen23 reopened this Jan 29, 2021
@patmellon
Copy link
Contributor

@brianjo Next week we'll open another PR with the ability to configure collapsed sections. We're going to add an array to both of the project layout files

The code will look something like

<script type="text/javascript">
    var collapsedSections = ['Package Reference'];
 </script>

Whenever you want a menu section to collapse as its default behavior, you can add the menu name to the array for that project. All other sections will remain expanded by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants