|
1 | 1 | <div data-test-item class="docs-pb-8"> |
2 | 2 | <h3 |
3 | | - id={{item.name}} |
4 | | - data-text={{item.name}} |
| 3 | + id={{@item.name}} |
| 4 | + data-text={{@item.name}} |
5 | 5 | data-test-item-header |
6 | 6 | class="docs-h3 docs-font-mono docs-font-normal" |
7 | 7 | > |
8 | | - {{#if (eq item.exportType "default")}} |
| 8 | + {{#if (eq @item.exportType "default")}} |
9 | 9 | <span class="docs-border docs-border-grey-light docs-align-text-top docs-leading-loose docs-text-xxs docs-pl-2 docs-mr-2 docs-py-1 docs-rounded"> |
10 | 10 | Default |
11 | 11 | </span> |
12 | 12 | {{/if}} |
13 | 13 |
|
14 | | - {{#if (or item.isClass item.isComponent)}} |
15 | | - <LinkTo @route="docs.api.item" @model={{concat "modules/" item.id}} class="hover:underline"> |
16 | | - <strong>{{item.name}}</strong> |
| 14 | + {{#if (or @item.isClass item.isComponent)}} |
| 15 | + <LinkTo @route="docs.api.item" @model={{concat "modules/" @item.id}} class="hover:underline"> |
| 16 | + <strong>{{@item.name}}</strong> |
17 | 17 | </LinkTo> |
18 | 18 | {{else}} |
19 | | - <a href="#{{item.name}}" class="heading-anchor"> |
20 | | - {{type-signature item}} |
| 19 | + <a href="#{{@item.name}}" class="heading-anchor"> |
| 20 | + {{type-signature @item}} |
21 | 21 | </a> |
22 | 22 | {{/if}} |
23 | 23 | </h3> |
24 | 24 |
|
25 | 25 | <p data-test-item-description> |
26 | | - {{{item.description}}} |
| 26 | + {{{@item.description}}} |
27 | 27 | </p> |
28 | 28 |
|
29 | | - {{#if (or (and item.exportType showImportPaths) shouldDisplayParams)}} |
| 29 | + {{#if (or (and @item.exportType this.showImportPaths) this.shouldDisplayParams)}} |
30 | 30 | <Api::XMetaPanel as |panel|> |
31 | | - {{#if item.exportType}} |
| 31 | + {{#if @item.exportType}} |
32 | 32 | <panel.header> |
33 | 33 | Import Path |
34 | 34 | </panel.header> |
35 | 35 |
|
36 | | - <Api::XImportPath @item={{item}} /> |
| 36 | + <Api::XImportPath @item={{@item}} /> |
37 | 37 | {{/if}} |
38 | 38 |
|
39 | | - {{#if shouldDisplayParams}} |
| 39 | + {{#if this.shouldDisplayParams}} |
40 | 40 | <panel.header> |
41 | 41 | Params |
42 | 42 | </panel.header> |
43 | 43 |
|
44 | 44 | <table class="docs-mb-6" data-test-item-params> |
45 | 45 | <tbody> |
46 | | - {{#each item.params as |param|}} |
| 46 | + {{#each @item.params as |param|}} |
47 | 47 | <tr data-test-item-param> |
48 | 48 | <td><span class="docs-font-mono docs-font-bold docs-border-r docs-border-grey-light docs-pr-2">{{param.name}}</span></td> |
49 | 49 | <td><span class="docs-font-mono docs-border-r docs-border-grey-light docs-px-2">{{param.type}}</span></td> |
|
0 commit comments