summaryrefslogtreecommitdiff
path: root/docs-src/content/functions/func_doc.md.tmpl
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2018-09-11 22:57:32 -0400
committerDave Henderson <dhenderson@gmail.com>2018-09-11 22:59:46 -0400
commitc60bcd69b543d399e8cfce23130b2e05bdb01618 (patch)
tree3fa7bb10580fc3d7dba5aeee285f91e0a76541ad /docs-src/content/functions/func_doc.md.tmpl
parent9f0b085698ce9759551410920a05f9771b3de8d6 (diff)
Improve docs for conv namespace
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'docs-src/content/functions/func_doc.md.tmpl')
-rw-r--r--docs-src/content/functions/func_doc.md.tmpl8
1 files changed, 6 insertions, 2 deletions
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 -}}