From c60bcd69b543d399e8cfce23130b2e05bdb01618 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Tue, 11 Sep 2018 22:57:32 -0400 Subject: Improve docs for conv namespace Signed-off-by: Dave Henderson --- docs-src/content/functions/func_doc.md.tmpl | 8 ++++++-- 1 file changed, 6 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 742b5afb..9fb27758 100644 --- a/docs-src/content/functions/func_doc.md.tmpl +++ b/docs-src/content/functions/func_doc.md.tmpl @@ -1,6 +1,6 @@ {{ $data := ds "data" -}} --- -title: {{ $data.ns }} functions +title: {{ index $data "title" | default (print $data.ns " functions") }} menu: main: parent: functions @@ -43,4 +43,8 @@ menu: ```console {{ . | strings.TrimSpace }} ``` -{{ end }}{{ end }}{{ end -}} +{{ end }}{{ end -}} +{{ if has $f "rawExamples" }} +### Examples + +{{ range $f.rawExamples }}{{ . }}{{ end }}{{ end }}{{ end -}} -- cgit v1.2.3