-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from cert-manager/feat/add-vertical-table-temp…
…late feat: add vertical table layout
- Loading branch information
Showing
8 changed files
with
15,214 additions
and
895 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{{- /* Comment rendering depends on the comment type, define a helper function */}} | ||
{{ define "comment" }} | ||
{{ if eq .Type "yaml" }} | ||
```yaml | ||
{{ . }} | ||
``` | ||
{{- else if eq .Type "text" }} | ||
{{- /* Newlines are only preserved in markdown if the line ends with two or more spaces */}} | ||
{{ .String | replace "\n" " \n"}} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{- /* Iterate over defined sections */}} | ||
{{- range .Sections }} | ||
|
||
{{- /* Render section header */}} | ||
{{- if .Name }} | ||
## {{ .Name }} | ||
{{- end }} | ||
|
||
{{- /* Render the description comment */}} | ||
{{- range .Description.Segments }} | ||
{{- template "comment" . }} | ||
{{- end }} | ||
|
||
{{- /* Iterate over properties within the section */}} | ||
{{- range .Properties }} | ||
|
||
### {{ .Name }} | ||
|
||
<table> | ||
<tr> | ||
<th>Property</th> | ||
<td>{{ .Name }}</td> | ||
</tr> | ||
<tr> | ||
<th>Type</th> | ||
<td>{{.Type}}</td> | ||
</tr> | ||
<tr> | ||
<th>Default</th> | ||
<td> | ||
|
||
```yaml | ||
{{.Default}} | ||
``` | ||
|
||
</td> | ||
</tr> | ||
</table> | ||
|
||
{{- range .Description.Segments }} | ||
{{- template "comment" . }} | ||
{{- end }} | ||
|
||
{{ end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters