]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
docs: Regen docshelper
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 17 Jan 2023 11:52:08 +0000 (12:52 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 17 Jan 2023 11:52:08 +0000 (12:52 +0100)
docs/data/docs.json

index 620aeb17921750c8d86150793df83df5307b60de..c55c27347e016247bc46603a32c236975659b1d6 100644 (file)
           "^postcss$"
         ],
         "osEnv": [
-          "(?i)^((HTTPS?|NO)_PROXY|PATH(EXT)?|APPDATA|TE?MP|TERM)$"
+          "(?i)^((HTTPS?|NO)_PROXY|PATH(EXT)?|APPDATA|TE?MP|TERM|GO\\w+)$"
         ]
       },
       "funcs": {
           ],
           "Examples": [
             [
-              "{{ findRE \"[G|g]o\" \"Hugo is a static side generator written in Go.\" \"1\" }}",
+              "{{ findRE \"[G|g]o\" \"Hugo is a static side generator written in Go.\" 1 }}",
               "[go]"
             ]
           ]
         },
+        "FindRESubmatch": {
+          "Description": "FindRESubmatch returns returns a slice of strings holding the text of the leftmost match of the regular expression in s and the matches, if any, of its subexpressions.\n\nBy default all matches will be included. The number of matches can be limited with the optional limit parameter. A return value of nil indicates no match.",
+          "Args": [
+            "expr",
+            "content",
+            "limit"
+          ],
+          "Aliases": [
+            "findRESubmatch"
+          ],
+          "Examples": [
+            [
+              "{{ findRESubmatch `\u003ca\\s*href=\"(.+?)\"\u003e(.+?)\u003c/a\u003e` `\u003cli\u003e\u003ca href=\"#foo\"\u003eFoo\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"#bar\"\u003eBar\u003c/a\u003e\u003c/li\u003e` | print | safeHTML }}",
+              "[[\u003ca href=\"#foo\"\u003eFoo\u003c/a\u003e #foo Foo] [\u003ca href=\"#bar\"\u003eBar\u003c/a\u003e #bar Bar]]"
+            ]
+          ]
+        },
         "FirstUpper": {
           "Description": "FirstUpper converts s making  the first character upper case.",
           "Args": [
           ]
         },
         "Truncate": {
-          "Description": "Truncate truncates a given string to the specified length.",
+          "Description": "Truncate truncates the string in s to the specified length.",
           "Args": [
-            "a",
+            "s",
             "options"
           ],
           "Aliases": [