Collapsible Sections
Collapsible sections let you hide and show dynamic content.
Collapsible Section Anatomy
A collapsible section contains the following parts:
Section title
Short description of the content in the section
Chevron to expand and collapse the section
Section content

click to enlarge
Collapsible Section Syntax
The following example shows the syntax for a collapsible section:
.. collapsible:: :heading: Prerequisites :sub_heading: Complete the previous steps in the tutorial and install dependencies :expanded: Body content goes here.
Collapsible Section Guidelines
When you create collapsible sections, use the following guidelines:
Make the title short and concise.
For the subheader, write a very one-line description with a period at the end. Don't exceed one line.
Don't hide essential information in a collapsible section. Include only secondary information, like prerequisite and troubleshooting information, in a collapsed section. Use the
:expanded:
option for sections that should display expanded by default.