|
31 | 31 | {{yield (hash |
32 | 32 | section=(component 'docs-viewer/x-section') |
33 | 33 | item=(component 'docs-viewer/x-nav-item') |
34 | | - subnav=(component 'docs-viewer/x-nav-list') |
| 34 | + subnav=(component 'docs-viewer/x-nav-list' class='ml-4') |
35 | 35 | )}} |
36 | 36 |
|
37 | 37 | {{!-- Autogenerated API docs --}} |
38 | 38 | {{#if (gt project.modules.length 0)}} |
39 | 39 | {{docs-viewer/x-section 'API Reference' style='large'}} |
40 | 40 |
|
41 | | - {{#docs-viewer/x-nav-list as |subnav|}} |
42 | | - {{#each-in project.navigationIndex as |type items|}} |
43 | | - {{docs-viewer/x-section type}} |
| 41 | + {{#each-in project.navigationIndex as |type items|}} |
| 42 | + {{docs-viewer/x-section type}} |
44 | 43 |
|
45 | | - {{#docs-viewer/x-nav-list as |subnav|}} |
46 | | - {{#if (is-array items)}} |
47 | | - {{#each items as |item|}} |
48 | | - {{subnav.item item.name (concat root '.api.item') item.path}} |
49 | | - {{/each}} |
50 | | - {{else}} |
51 | | - {{#each-in items as |module items|}} |
52 | | - {{subnav.item module |
53 | | - (concat root '.api.item') |
54 | | - (concat 'modules/' module) |
55 | | - class="docs-viewer__module-heading" |
56 | | - }} |
57 | | - |
58 | | - {{#docs-viewer/x-nav-list as |subnav|}} |
59 | | - {{#each items as |item|}} |
60 | | - {{subnav.item item.name (concat root '.api.item') item.path}} |
61 | | - {{/each}} |
62 | | - {{/docs-viewer/x-nav-list}} |
63 | | - {{/each-in}} |
64 | | - {{/if}} |
65 | | - {{/docs-viewer/x-nav-list}} |
66 | | - {{/each-in}} |
67 | | - {{/docs-viewer/x-nav-list}} |
| 44 | + {{#each items as |item|}} |
| 45 | + {{docs-viewer/x-nav-item (break-on item.name '/') (concat root '.api.item') item.path}} |
| 46 | + {{/each}} |
| 47 | + {{/each-in}} |
68 | 48 | {{/if}} |
69 | 49 | {{/docs-viewer/x-nav-list}} |
70 | 50 |
|
|
0 commit comments