io7m
io7m-jstructural 2.0.0
5.21
section-contents

- 5.21.1. Description
- 5.21.2. Processing
- 5.21.3. CSS
- 5.21.4. Example

5.21.1
Description
1
The section-contents element specifies that a table of contents should be generated for the given section.
5.21.2
Processing
1
The table of contents appears at the start of the parent section and contains references to all the children of that element.
5.21.3
CSS
1
The CSS for section-contents elements is slightly more complex. In addition to any classes specified by the type attribute, the main list structure is assigned the class st200_section_contents. Each element of the list is assigned the class st200_section_contents_item in addition to one of st200_section_contents_item1, st200_section_contents_item2 or st200_section_contents_item3 depending on the depth of the item in the list. The root section element of the list is assigned the class st200_section_contents_section and all subsection elements appearing in the list are assigned the class st200_section_contents_subsection.
5.21.4
Example
1
The table of contents above was generated by adding a section-contents element at the beginning of the section.