Skip to content

Add array to control which sections get collapsed #1372

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 26, 2021

Conversation

Bgreen23
Copy link
Contributor

@Bgreen23 Bgreen23 commented Feb 23, 2021

This PR adds an array to the layout file. To collapse a section add the caption text to the array.
Ex: var collapsedSections = ['Learning PyTorch', 'Audio'];
In that example, the Learning PyTorch and Audio sections will be collapsed and all other sections will be expanded by default

@netlify
Copy link

netlify bot commented Feb 23, 2021

Deploy preview for pytorch-tutorials-preview ready!

Built with commit b4f9fea

https://deploy-preview-1372--pytorch-tutorials-preview.netlify.app

@ydcjeff
Copy link

ydcjeff commented Mar 1, 2021

@brianjo @Bgreen23 the latest pytorch tutorials site still has left nav bar collapsed even after collapsedSections is null.

gaoteng-git pushed a commit to gaoteng-git/tutorials that referenced this pull request Mar 2, 2021
rodrigo-techera pushed a commit to Experience-Monks/tutorials that referenced this pull request Nov 29, 2021
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