From cfc6bdc4ae5677ae742b9270409e9d2f5e6426fd Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Sun, 7 May 2023 20:54:47 -0400 Subject: Migrate docs site to new theme Signed-off-by: Dave Henderson --- docs-src/content/functions/func_doc.md.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs-src/content/functions/func_doc.md.tmpl') diff --git a/docs-src/content/functions/func_doc.md.tmpl b/docs-src/content/functions/func_doc.md.tmpl index 36adc712..9c87dd9f 100644 --- a/docs-src/content/functions/func_doc.md.tmpl +++ b/docs-src/content/functions/func_doc.md.tmpl @@ -3,11 +3,11 @@ {{- define "usage" }}### Usage {{- $arguments := index . "arguments" | default coll.Slice }} {{ if has . "rawUsage" }}{{ .rawUsage | strings.TrimSpace }}{{ else }} -```go +``` {{ .name }}{{ range $a := $arguments }} {{template "argName" $a }}{{end}} ``` {{- if (index . "pipeline" | default false) }} -```go +``` {{ $last := (sub (len $arguments) 1) -}} {{ (index $arguments $last).name }} | {{ .name }}{{ range $i, $a := $arguments }}{{if not (eq $i $last)}} {{template "argName" $a }}{{end}}{{end}} ``` -- cgit v1.2.3