docs: Regen docs helper
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 7 Sep 2020 19:45:16 +0000 (21:45 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 7 Sep 2020 19:45:16 +0000 (21:45 +0200)
docs/data/docs.json

index 440ba0fd469321714968d4f505141db86fd87cb1..2d780e9f8f4e01a16ea93d6b7678bdffdbe4a2d3 100644 (file)
           "css"
         ]
       },
+      {
+        "Name": "Caddyfile",
+        "Aliases": [
+          "caddy",
+          "caddyfile"
+        ]
+      },
+      {
+        "Name": "Caddyfile Directives",
+        "Aliases": [
+          "caddy-d",
+          "caddyfile-d",
+          "caddyfile-directives"
+        ]
+      },
       {
         "Name": "Cap'n Proto",
         "Aliases": [
         "Aliases": [
           "cfg",
           "dosini",
+          "editorconfig",
           "gitconfig",
           "inf",
           "ini"
           "php[345]"
         ]
       },
+      {
+        "Name": "PHTML",
+        "Aliases": [
+          "phtml"
+        ]
+      },
       {
         "Name": "PL/pgSQL",
         "Aliases": [
           "pkgconfig"
         ]
       },
+      {
+        "Name": "Pony",
+        "Aliases": [
+          "pony"
+        ]
+      },
       {
         "Name": "PostScript",
         "Aliases": [
           "yang"
         ]
       },
+      {
+        "Name": "Zig",
+        "Aliases": [
+          "zig"
+        ]
+      },
       {
         "Name": "cfstatement",
         "Aliases": [
       },
       "asciidocExt": {
         "backend": "html5",
-        "docType": "article",
         "extensions": [],
         "attributes": {},
         "noHeaderOrFooter": true,
         "safeMode": "unsafe",
         "sectionNumbers": false,
-        "verbose": true,
+        "verbose": false,
         "trace": false,
         "failureLevel": "fatal",
         "workingFolderCurrent": false
           "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"
             [
               "{{  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!]"
             ]
           ]
         },
           ]
         },
         "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"
             [
               "{{ 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.",