mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 08:00:06 +01:00
42 lines
No EOL
1.1 KiB
HTML
42 lines
No EOL
1.1 KiB
HTML
{{ $name := index . "name" }}
|
|
{{ $option := index . "option" }}
|
|
{{ $repo := index . "repo" }}
|
|
|
|
{{ $path := path.Join (after 2 (split (index $option.declarations 0) "/")) }}
|
|
|
|
<details id="{{ $name }}">
|
|
<summary>
|
|
<pre>{{ $name }}</pre>
|
|
</summary>
|
|
|
|
<div class="table-container">
|
|
<table>
|
|
<tr>
|
|
<td>Description</td>
|
|
<td>{{ safeHTML (replace $option.description "\n\n" "<br/><br/>") }}</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Type</td>
|
|
<td><pre>{{ $option.type }}</pre></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Default</td>
|
|
<td>{{ partial "highlight" $option.default.text }}</td>
|
|
</tr>
|
|
|
|
{{ with $option.example.text }}
|
|
<tr>
|
|
<td>Example</td>
|
|
<td>{{ partial "highlight" . }}</td>
|
|
</tr>
|
|
{{ end }}
|
|
|
|
<tr>
|
|
<td>Declared in</td>
|
|
<td><a href="{{ $repo }}/blob/main/{{ $path }}" target="_blank">{{ $path }}</a></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</details> |