|
1 | | -<div class="flex-1"> |
2 | | - {{#each-in sections as |section items|}} |
3 | | - {{#if items}} |
4 | | - <section data-test-api-section class="item-section"> |
5 | | - <h2 data-test-section-header={{section}} class='docs-h2'> |
6 | | - {{capitalize section}} |
7 | | - </h2> |
| 1 | +{{#each-in sections as |section items|}} |
| 2 | + {{#if items}} |
| 3 | + <section data-test-api-section class="item-section"> |
| 4 | + <h2 data-test-section-header={{section}} class='docs-h2'> |
| 5 | + {{capitalize section}} |
| 6 | + </h2> |
8 | 7 |
|
9 | | - {{#each items as |item|}} |
10 | | - <div data-test-item> |
11 | | - {{#if (or item.isClass item.isComponent)}} |
12 | | - <h3 id={{item.name}} data-test-item-header class="item-section__class-header mb-1"> |
13 | | - {{#link-to 'docs.api.item' (concat 'root/' item.id)}} |
14 | | - {{#if (eq item.exportType 'default')}} |
15 | | - <span class="item-section__default-label">Default</span> |
16 | | - {{/if}} |
17 | | - {{item.name}} |
18 | | - {{/link-to}} |
19 | | - </h3> |
| 8 | + {{#each items as |item|}} |
| 9 | + <div data-test-item> |
| 10 | + {{#if (or item.isClass item.isComponent)}} |
| 11 | + <h3 id={{item.name}} data-test-item-header class="item-section__class-header mb-1"> |
| 12 | + {{#link-to 'docs.api.item' (concat 'root/' item.id)}} |
| 13 | + {{#if (eq item.exportType 'default')}} |
| 14 | + <span class="item-section__default-label">Default</span> |
| 15 | + {{/if}} |
| 16 | + {{item.name}} |
| 17 | + {{/link-to}} |
| 18 | + </h3> |
20 | 19 |
|
21 | | - {{{item.description}}} |
22 | | - {{else}} |
23 | | - <h3 id={{item.name}} data-test-item-header class="item-section__item-header mb-1"> |
24 | | - <a href="#{{item.name}}"> |
25 | | - {{#if (eq item.exportType 'default')}} |
26 | | - <span class="item-section__default-label">Default</span> |
27 | | - {{/if}} |
| 20 | + {{{item.description}}} |
| 21 | + {{else}} |
| 22 | + <h3 id={{item.name}} data-test-item-header data-text="{{item.name}}" class="docs-h3 mb-1"> |
| 23 | + <a href="#{{item.name}}" class="docs-header-link"> |
| 24 | + {{#if (eq item.exportType 'default')}} |
| 25 | + <span class="item-section__default-label">Default</span> |
| 26 | + {{/if}} |
28 | 27 |
|
29 | | - {{type-signature item}} |
30 | | - </a> |
31 | | - </h3> |
| 28 | + {{type-signature item}} |
| 29 | + </a> |
| 30 | + </h3> |
32 | 31 |
|
33 | | - {{#if item.exportType}} |
34 | | - {{api/x-import-path data-test-import-path=true item=item}} |
35 | | - {{/if}} |
| 32 | + {{#if item.exportType}} |
| 33 | + {{api/x-import-path data-test-import-path=true item=item}} |
| 34 | + {{/if}} |
36 | 35 |
|
37 | | - <p data-test-item-description> |
38 | | - {{{item.description}}} |
39 | | - </p> |
| 36 | + <p data-test-item-description> |
| 37 | + {{{item.description}}} |
| 38 | + </p> |
40 | 39 |
|
41 | | - {{api/x-params data-test-item-params=true params=item.params}} |
42 | | - {{/if}} |
43 | | - </div> |
44 | | - {{/each}} |
45 | | - </section> |
46 | | - {{/if}} |
47 | | - {{/each-in}} |
48 | | -</div> |
| 40 | + {{api/x-params data-test-item-params=true params=item.params}} |
| 41 | + {{/if}} |
| 42 | + </div> |
| 43 | + {{/each}} |
| 44 | + </section> |
| 45 | + {{/if}} |
| 46 | +{{/each-in}} |
0 commit comments