mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
docs: Regen docshelper
This commit is contained in:
parent
b661132e0a
commit
80e8bd3b72
1 changed files with 21 additions and 4 deletions
|
@ -1718,7 +1718,7 @@
|
||||||
"^postcss$"
|
"^postcss$"
|
||||||
],
|
],
|
||||||
"osEnv": [
|
"osEnv": [
|
||||||
"(?i)^((HTTPS?|NO)_PROXY|PATH(EXT)?|APPDATA|TE?MP|TERM)$"
|
"(?i)^((HTTPS?|NO)_PROXY|PATH(EXT)?|APPDATA|TE?MP|TERM|GO\\w+)$"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"funcs": {
|
"funcs": {
|
||||||
|
@ -4959,11 +4959,28 @@
|
||||||
],
|
],
|
||||||
"Examples": [
|
"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]"
|
"[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": {
|
"FirstUpper": {
|
||||||
"Description": "FirstUpper converts s making the first character upper case.",
|
"Description": "FirstUpper converts s making the first character upper case.",
|
||||||
"Args": [
|
"Args": [
|
||||||
|
@ -5250,9 +5267,9 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"Truncate": {
|
"Truncate": {
|
||||||
"Description": "Truncate truncates a given string to the specified length.",
|
"Description": "Truncate truncates the string in s to the specified length.",
|
||||||
"Args": [
|
"Args": [
|
||||||
"a",
|
"s",
|
||||||
"options"
|
"options"
|
||||||
],
|
],
|
||||||
"Aliases": [
|
"Aliases": [
|
||||||
|
|
Loading…
Reference in a new issue