From e6cd9da42d415552ae69e6b0afae823fd5e0003c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 7 Sep 2020 21:45:16 +0200 Subject: docs: Regen docs helper --- docs/data/docs.json | 71 +++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 61 insertions(+), 10 deletions(-) (limited to 'docs') diff --git a/docs/data/docs.json b/docs/data/docs.json index 440ba0fd4..2d780e9f8 100644 --- a/docs/data/docs.json +++ b/docs/data/docs.json @@ -230,6 +230,21 @@ "css" ] }, + { + "Name": "Caddyfile", + "Aliases": [ + "caddy", + "caddyfile" + ] + }, + { + "Name": "Caddyfile Directives", + "Aliases": [ + "caddy-d", + "caddyfile-d", + "caddyfile-directives" + ] + }, { "Name": "Cap'n Proto", "Aliases": [ @@ -599,6 +614,7 @@ "Aliases": [ "cfg", "dosini", + "editorconfig", "gitconfig", "inf", "ini" @@ -870,6 +886,12 @@ "php[345]" ] }, + { + "Name": "PHTML", + "Aliases": [ + "phtml" + ] + }, { "Name": "PL/pgSQL", "Aliases": [ @@ -912,6 +934,12 @@ "pkgconfig" ] }, + { + "Name": "Pony", + "Aliases": [ + "pony" + ] + }, { "Name": "PostScript", "Aliases": [ @@ -1362,6 +1390,12 @@ "yang" ] }, + { + "Name": "Zig", + "Aliases": [ + "zig" + ] + }, { "Name": "cfstatement", "Aliases": [ @@ -1491,13 +1525,12 @@ }, "asciidocExt": { "backend": "html5", - "docType": "article", "extensions": [], "attributes": {}, "noHeaderOrFooter": true, "safeMode": "unsafe", "sectionNumbers": false, - "verbose": true, + "verbose": false, "trace": false, "failureLevel": "fatal", "workingFolderCurrent": false @@ -2973,10 +3006,9 @@ "Examples": [] }, "Merge": { - "Description": "Merge creates a copy of dst and merges src into it.\nCurrently only maps supported. Key handling is case insensitive.", + "Description": "Merge creates a copy of the final parameter and merges the preceeding\nparameters into it in reverse order.\nCurrently only maps are supported. Key handling is case insensitive.", "Args": [ - "src", - "dst" + "params" ], "Aliases": [ "merge" @@ -2989,6 +3021,10 @@ [ "{{ merge (dict \"title\" \"Default Title\" \"description\" \"Yes, Hugo Rocks!\") (dict \"title\" \"Hugo Rocks!\") | sort }}", "[Yes, Hugo Rocks! Hugo Rocks!]" + ], + [ + "{{ merge (dict \"title\" \"Default Title\" \"description\" \"Yes, Hugo Rocks!\") (dict \"title\" \"Hugo Rocks!\") (dict \"extra\" \"For reals!\") | sort }}", + "[Yes, Hugo Rocks! For reals! Hugo Rocks!]" ] ] }, @@ -4408,11 +4444,12 @@ ] }, "Replace": { - "Description": "Replace returns a copy of the string s with all occurrences of old replaced\nwith new.", + "Description": "Replace returns a copy of the string s with all occurrences of old replaced\nwith new. The number of replacements can be limited with an optional fourth\nparameter.", "Args": [ "s", "old", - "new" + "new", + "limit" ], "Aliases": [ "replace" @@ -4421,20 +4458,34 @@ [ "{{ replace \"Batman and Robin\" \"Robin\" \"Catwoman\" }}", "Batman and Catwoman" + ], + [ + "{{ replace \"aabbaabb\" \"a\" \"z\" 2 }}", + "zzbbaabb" ] ] }, "ReplaceRE": { - "Description": "ReplaceRE returns a copy of s, replacing all matches of the regular\nexpression pattern with the replacement text repl.", + "Description": "ReplaceRE returns a copy of s, replacing all matches of the regular\nexpression pattern with the replacement text repl. The number of replacements\ncan be limited with an optional fourth parameter.", "Args": [ "pattern", "repl", - "s" + "s", + "n" ], "Aliases": [ "replaceRE" ], - "Examples": [] + "Examples": [ + [ + "{{ replaceRE \"a+b\" \"X\" \"aabbaabbab\" }}", + "XbXbX" + ], + [ + "{{ replaceRE \"a+b\" \"X\" \"aabbaabbab\" 1 }}", + "Xbaabbab" + ] + ] }, "RuneCount": { "Description": "RuneCount returns the number of runes in s.", -- cgit v1.2.3