Commit 49a3ef5
committed
feat(builder): Add hierarchical subsection support for API reference sections
Implement support for multi-level section structure in API documentation,
allowing sections to contain subsections organized in folder hierarchies.
- Sections can now have subsections (e.g., FAQ.md + FAQ/ folder)
- Main section content displays as "Overview" subsection
- Subsection files automatically loaded from matching directories
- Dropdown navigation shows only subsection names, not parent section
- The new dynamic sections/subsections are bookmark-able the page
automatically scrolls down to the section
Example structure:
sections/Component/FAQ.md "Overview" subsection
sections/Component/FAQ/Example1.md "Example1" subsection
sections/Component/FAQ/Example2.md "Example2" subsection
JIRA: BGSOFUIPIRIN-6925
Cherry-picked from UI5/openui5@05f6fef35.1 parent a474700 commit 49a3ef5
File tree
1 file changed
+33
-7
lines changed- packages/builder/lib/processors/jsdoc/lib
1 file changed
+33
-7
lines changedLines changed: 33 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1034 | 1034 | | |
1035 | 1035 | | |
1036 | 1036 | | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
1037 | 1049 | | |
1038 | | - | |
1039 | | - | |
1040 | | - | |
1041 | | - | |
1042 | | - | |
1043 | | - | |
1044 | | - | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
1045 | 1065 | | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
1046 | 1072 | | |
1047 | 1073 | | |
1048 | 1074 | | |
| |||
0 commit comments