Skip to content

Commit

Permalink
docs: update flags formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
polydez committed Nov 7, 2024
1 parent 895b299 commit 8796ef5
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 49 deletions.
2 changes: 1 addition & 1 deletion docs/api-doc.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{{.Description}}

##### Fields
{{if .HasFields}}{{range .Fields -}}- `{{.Name}}`: {{if .IsMap}}_map_ {{else}}{{if .Label}}_{{.Label}}_ {{end}}{{end}}[`{{.FullType}}`](#{{.FullType | lower | replace "." "-"}}) — {{if .Description}}{{nobr .Description}}{{if .DefaultValue}} Default: {{.DefaultValue}}{{end}}{{else}}none{{end}}
{{if .HasFields}}{{range .Fields -}}- `{{.Name}}`: {{if .IsMap}}[map] {{else}}{{if .Label}}[{{.Label}}] {{end}}{{end}}[`{{.FullType}}`](#{{.FullType | lower | replace "." "-"}}) — {{if .Description}}{{nobr .Description}}{{if .DefaultValue}} Default: {{.DefaultValue}}{{end}}{{else}}none{{end}}
{{end}}{{else}}No fields{{end}}
{{end}}{{end}}{{end}}

Expand Down
Loading

0 comments on commit 8796ef5

Please sign in to comment.