github.com/olli-ai/jx/v2@v2.0.400-0.20210921045218-14731b4dd448/docs/refdocs/templates/type.tpl (about)

     1  {{ define "type" }}
     2  
     3  <h3 id="{{ anchorIDForType . }}">
     4      {{- .Name.Name }}
     5      {{ if eq .Kind "Alias" }}(<code>{{.Underlying}}</code> alias)</p>{{ end -}}
     6  </h3>
     7  {{ with (typeReferences .) }}
     8      <p>
     9          (<em>Appears on:</em>
    10          {{- $prev := "" -}}
    11          {{- range . -}}
    12              {{- if $prev -}}, {{ end -}}
    13              {{ $prev = . }}
    14              <a href="{{ linkForType . }}">{{ typeDisplayName . }}</a>
    15          {{- end -}}
    16          )
    17      </p>
    18  {{ end }}
    19  
    20  
    21  <p>
    22      {{ safe (renderComments .CommentLines) }}
    23  </p>
    24  
    25  {{ if .Members }}
    26  <table>
    27      <thead>
    28          <tr>
    29              <th>Field</th>
    30              <th>Description</th>
    31          </tr>
    32      </thead>
    33      <tbody>
    34          {{ if isExportedType . }}
    35          <tr>
    36              <td>
    37                  <code>apiVersion</code></br>
    38                  string</td>
    39              <td>
    40                  <code>
    41                      {{apiGroup .}}
    42                  </code>
    43              </td>
    44          </tr>
    45          <tr>
    46              <td>
    47                  <code>kind</code></br>
    48                  string
    49              </td>
    50              <td><code>{{.Name.Name}}</code></td>
    51          </tr>
    52          {{ end }}
    53          {{ template "members" .}}
    54      </tbody>
    55  </table>
    56  {{ end }}
    57  
    58  {{ end }}