docs: Regenerate docs helper

This commit is contained in:
Bjørn Erik Pedersen 2021-03-21 13:33:26 +01:00
parent 195d108da7
commit 86b4fd35e7
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -1597,263 +1597,369 @@
"media": { "media": {
"types": [ "types": [
{ {
"type": "application/javascript",
"string": "application/javascript",
"mainType": "application", "mainType": "application",
"subType": "javascript", "subType": "javascript",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "js",
"fullSuffix": ".js"
},
"type": "application/javascript",
"string": "application/javascript",
"suffixes": [ "suffixes": [
"js" "js"
] ]
}, },
{ {
"type": "application/json",
"string": "application/json",
"mainType": "application", "mainType": "application",
"subType": "json", "subType": "json",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "json",
"fullSuffix": ".json"
},
"type": "application/json",
"string": "application/json",
"suffixes": [ "suffixes": [
"json" "json"
] ]
}, },
{ {
"type": "application/octet-stream",
"string": "application/octet-stream",
"mainType": "application", "mainType": "application",
"subType": "octet-stream", "subType": "octet-stream",
"delimiter": "", "delimiter": ".",
"suffixes": null "firstSuffix": {
"suffix": "",
"fullSuffix": ""
},
"type": "application/octet-stream",
"string": "application/octet-stream",
"suffixes": [
""
]
}, },
{ {
"type": "application/rss+xml",
"string": "application/rss+xml",
"mainType": "application", "mainType": "application",
"subType": "rss", "subType": "rss",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "xml",
"fullSuffix": ".xml"
},
"type": "application/rss+xml",
"string": "application/rss+xml",
"suffixes": [ "suffixes": [
"xml" "xml"
] ]
}, },
{ {
"type": "application/toml",
"string": "application/toml",
"mainType": "application", "mainType": "application",
"subType": "toml", "subType": "toml",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "toml",
"fullSuffix": ".toml"
},
"type": "application/toml",
"string": "application/toml",
"suffixes": [ "suffixes": [
"toml" "toml"
] ]
}, },
{ {
"type": "application/typescript",
"string": "application/typescript",
"mainType": "application", "mainType": "application",
"subType": "typescript", "subType": "typescript",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "ts",
"fullSuffix": ".ts"
},
"type": "application/typescript",
"string": "application/typescript",
"suffixes": [ "suffixes": [
"ts" "ts"
] ]
}, },
{ {
"type": "application/xml",
"string": "application/xml",
"mainType": "application", "mainType": "application",
"subType": "xml", "subType": "xml",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "xml",
"fullSuffix": ".xml"
},
"type": "application/xml",
"string": "application/xml",
"suffixes": [ "suffixes": [
"xml" "xml"
] ]
}, },
{ {
"type": "application/yaml",
"string": "application/yaml",
"mainType": "application", "mainType": "application",
"subType": "yaml", "subType": "yaml",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "yaml",
"fullSuffix": ".yaml"
},
"type": "application/yaml",
"string": "application/yaml",
"suffixes": [ "suffixes": [
"yaml", "yaml",
"yml" "yml"
] ]
}, },
{ {
"type": "image/jpeg",
"string": "image/jpeg",
"mainType": "image", "mainType": "image",
"subType": "jpeg", "subType": "jpeg",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "jpg",
"fullSuffix": ".jpg"
},
"type": "image/jpeg",
"string": "image/jpeg",
"suffixes": [ "suffixes": [
"jpg", "jpg",
"jpeg" "jpeg"
] ]
}, },
{ {
"type": "image/png",
"string": "image/png",
"mainType": "image", "mainType": "image",
"subType": "png", "subType": "png",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "png",
"fullSuffix": ".png"
},
"type": "image/png",
"string": "image/png",
"suffixes": [ "suffixes": [
"png" "png"
] ]
}, },
{ {
"type": "image/svg+xml",
"string": "image/svg+xml",
"mainType": "image", "mainType": "image",
"subType": "svg", "subType": "svg",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "svg",
"fullSuffix": ".svg"
},
"type": "image/svg+xml",
"string": "image/svg+xml",
"suffixes": [ "suffixes": [
"svg" "svg"
] ]
}, },
{ {
"type": "text/calendar",
"string": "text/calendar",
"mainType": "text", "mainType": "text",
"subType": "calendar", "subType": "calendar",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "ics",
"fullSuffix": ".ics"
},
"type": "text/calendar",
"string": "text/calendar",
"suffixes": [ "suffixes": [
"ics" "ics"
] ]
}, },
{ {
"type": "text/css",
"string": "text/css",
"mainType": "text", "mainType": "text",
"subType": "css", "subType": "css",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "css",
"fullSuffix": ".css"
},
"type": "text/css",
"string": "text/css",
"suffixes": [ "suffixes": [
"css" "css"
] ]
}, },
{ {
"type": "text/csv",
"string": "text/csv",
"mainType": "text", "mainType": "text",
"subType": "csv", "subType": "csv",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "csv",
"fullSuffix": ".csv"
},
"type": "text/csv",
"string": "text/csv",
"suffixes": [ "suffixes": [
"csv" "csv"
] ]
}, },
{ {
"type": "text/html",
"string": "text/html",
"mainType": "text", "mainType": "text",
"subType": "html", "subType": "html",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "html",
"fullSuffix": ".html"
},
"type": "text/html",
"string": "text/html",
"suffixes": [ "suffixes": [
"html" "html"
] ]
}, },
{ {
"type": "text/jsx",
"string": "text/jsx",
"mainType": "text", "mainType": "text",
"subType": "jsx", "subType": "jsx",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "jsx",
"fullSuffix": ".jsx"
},
"type": "text/jsx",
"string": "text/jsx",
"suffixes": [ "suffixes": [
"jsx" "jsx"
] ]
}, },
{ {
"type": "text/plain",
"string": "text/plain",
"mainType": "text", "mainType": "text",
"subType": "plain", "subType": "plain",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "txt",
"fullSuffix": ".txt"
},
"type": "text/plain",
"string": "text/plain",
"suffixes": [ "suffixes": [
"txt" "txt"
] ]
}, },
{ {
"type": "text/tsx",
"string": "text/tsx",
"mainType": "text", "mainType": "text",
"subType": "tsx", "subType": "tsx",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "tsx",
"fullSuffix": ".tsx"
},
"type": "text/tsx",
"string": "text/tsx",
"suffixes": [ "suffixes": [
"tsx" "tsx"
] ]
}, },
{ {
"type": "text/x-sass",
"string": "text/x-sass",
"mainType": "text", "mainType": "text",
"subType": "x-sass", "subType": "x-sass",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "sass",
"fullSuffix": ".sass"
},
"type": "text/x-sass",
"string": "text/x-sass",
"suffixes": [ "suffixes": [
"sass" "sass"
] ]
}, },
{ {
"type": "text/x-scss",
"string": "text/x-scss",
"mainType": "text", "mainType": "text",
"subType": "x-scss", "subType": "x-scss",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "scss",
"fullSuffix": ".scss"
},
"type": "text/x-scss",
"string": "text/x-scss",
"suffixes": [ "suffixes": [
"scss" "scss"
] ]
}, },
{ {
"type": "video/3gpp",
"string": "video/3gpp",
"mainType": "video", "mainType": "video",
"subType": "3gpp", "subType": "3gpp",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "3gpp",
"fullSuffix": ".3gpp"
},
"type": "video/3gpp",
"string": "video/3gpp",
"suffixes": [ "suffixes": [
"3gpp", "3gpp",
"3gp" "3gp"
] ]
}, },
{ {
"type": "video/mp4",
"string": "video/mp4",
"mainType": "video", "mainType": "video",
"subType": "mp4", "subType": "mp4",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "mp4",
"fullSuffix": ".mp4"
},
"type": "video/mp4",
"string": "video/mp4",
"suffixes": [ "suffixes": [
"mp4" "mp4"
] ]
}, },
{ {
"type": "video/mpeg",
"string": "video/mpeg",
"mainType": "video", "mainType": "video",
"subType": "mpeg", "subType": "mpeg",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "mpg",
"fullSuffix": ".mpg"
},
"type": "video/mpeg",
"string": "video/mpeg",
"suffixes": [ "suffixes": [
"mpg", "mpg",
"mpeg" "mpeg"
] ]
}, },
{ {
"type": "video/ogg",
"string": "video/ogg",
"mainType": "video", "mainType": "video",
"subType": "ogg", "subType": "ogg",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "ogv",
"fullSuffix": ".ogv"
},
"type": "video/ogg",
"string": "video/ogg",
"suffixes": [ "suffixes": [
"ogv" "ogv"
] ]
}, },
{ {
"type": "video/webm",
"string": "video/webm",
"mainType": "video", "mainType": "video",
"subType": "webm", "subType": "webm",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "webm",
"fullSuffix": ".webm"
},
"type": "video/webm",
"string": "video/webm",
"suffixes": [ "suffixes": [
"webm" "webm"
] ]
}, },
{ {
"type": "video/x-msvideo",
"string": "video/x-msvideo",
"mainType": "video", "mainType": "video",
"subType": "x-msvideo", "subType": "x-msvideo",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "avi",
"fullSuffix": ".avi"
},
"type": "video/x-msvideo",
"string": "video/x-msvideo",
"suffixes": [ "suffixes": [
"avi" "avi"
] ]
@ -1866,11 +1972,15 @@
"MediaType": "text/html", "MediaType": "text/html",
"name": "HTML", "name": "HTML",
"mediaType": { "mediaType": {
"type": "text/html",
"string": "text/html",
"mainType": "text", "mainType": "text",
"subType": "html", "subType": "html",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "html",
"fullSuffix": ".html"
},
"type": "text/html",
"string": "text/html",
"suffixes": [ "suffixes": [
"html" "html"
] ]
@ -1890,11 +2000,15 @@
"MediaType": "text/html", "MediaType": "text/html",
"name": "AMP", "name": "AMP",
"mediaType": { "mediaType": {
"type": "text/html",
"string": "text/html",
"mainType": "text", "mainType": "text",
"subType": "html", "subType": "html",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "html",
"fullSuffix": ".html"
},
"type": "text/html",
"string": "text/html",
"suffixes": [ "suffixes": [
"html" "html"
] ]
@ -1914,11 +2028,15 @@
"MediaType": "text/css", "MediaType": "text/css",
"name": "CSS", "name": "CSS",
"mediaType": { "mediaType": {
"type": "text/css",
"string": "text/css",
"mainType": "text", "mainType": "text",
"subType": "css", "subType": "css",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "css",
"fullSuffix": ".css"
},
"type": "text/css",
"string": "text/css",
"suffixes": [ "suffixes": [
"css" "css"
] ]
@ -1938,11 +2056,15 @@
"MediaType": "text/csv", "MediaType": "text/csv",
"name": "CSV", "name": "CSV",
"mediaType": { "mediaType": {
"type": "text/csv",
"string": "text/csv",
"mainType": "text", "mainType": "text",
"subType": "csv", "subType": "csv",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "csv",
"fullSuffix": ".csv"
},
"type": "text/csv",
"string": "text/csv",
"suffixes": [ "suffixes": [
"csv" "csv"
] ]
@ -1962,11 +2084,15 @@
"MediaType": "text/calendar", "MediaType": "text/calendar",
"name": "Calendar", "name": "Calendar",
"mediaType": { "mediaType": {
"type": "text/calendar",
"string": "text/calendar",
"mainType": "text", "mainType": "text",
"subType": "calendar", "subType": "calendar",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "ics",
"fullSuffix": ".ics"
},
"type": "text/calendar",
"string": "text/calendar",
"suffixes": [ "suffixes": [
"ics" "ics"
] ]
@ -1986,11 +2112,15 @@
"MediaType": "application/json", "MediaType": "application/json",
"name": "JSON", "name": "JSON",
"mediaType": { "mediaType": {
"type": "application/json",
"string": "application/json",
"mainType": "application", "mainType": "application",
"subType": "json", "subType": "json",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "json",
"fullSuffix": ".json"
},
"type": "application/json",
"string": "application/json",
"suffixes": [ "suffixes": [
"json" "json"
] ]
@ -2010,11 +2140,15 @@
"MediaType": "text/plain", "MediaType": "text/plain",
"name": "ROBOTS", "name": "ROBOTS",
"mediaType": { "mediaType": {
"type": "text/plain",
"string": "text/plain",
"mainType": "text", "mainType": "text",
"subType": "plain", "subType": "plain",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "txt",
"fullSuffix": ".txt"
},
"type": "text/plain",
"string": "text/plain",
"suffixes": [ "suffixes": [
"txt" "txt"
] ]
@ -2034,11 +2168,15 @@
"MediaType": "application/rss+xml", "MediaType": "application/rss+xml",
"name": "RSS", "name": "RSS",
"mediaType": { "mediaType": {
"type": "application/rss+xml",
"string": "application/rss+xml",
"mainType": "application", "mainType": "application",
"subType": "rss", "subType": "rss",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "xml",
"fullSuffix": ".xml"
},
"type": "application/rss+xml",
"string": "application/rss+xml",
"suffixes": [ "suffixes": [
"xml" "xml"
] ]
@ -2058,11 +2196,15 @@
"MediaType": "application/xml", "MediaType": "application/xml",
"name": "Sitemap", "name": "Sitemap",
"mediaType": { "mediaType": {
"type": "application/xml",
"string": "application/xml",
"mainType": "application", "mainType": "application",
"subType": "xml", "subType": "xml",
"delimiter": ".", "delimiter": ".",
"firstSuffix": {
"suffix": "xml",
"fullSuffix": ".xml"
},
"type": "application/xml",
"string": "application/xml",
"suffixes": [ "suffixes": [
"xml" "xml"
] ]
@ -4360,16 +4502,40 @@
] ]
}, },
"Contains": { "Contains": {
"Description": "", "Description": "Contains reports whether substr is in s.",
"Args": null, "Args": [
"s",
"substr"
],
"Aliases": null, "Aliases": null,
"Examples": null "Examples": [
[
"{{ strings.Contains \"abc\" \"b\" }}",
"true"
],
[
"{{ strings.Contains \"abc\" \"d\" }}",
"false"
]
]
}, },
"ContainsAny": { "ContainsAny": {
"Description": "", "Description": "ContainsAny reports whether any Unicode code points in chars are within s.",
"Args": null, "Args": [
"s",
"chars"
],
"Aliases": null, "Aliases": null,
"Examples": null "Examples": [
[
"{{ strings.ContainsAny \"abc\" \"bcd\" }}",
"true"
],
[
"{{ strings.ContainsAny \"abc\" \"def\" }}",
"false"
]
]
}, },
"Count": { "Count": {
"Description": "Count counts the number of non-overlapping instances of substr in s.\nIf substr is an empty string, Count returns 1 + the number of Unicode code points in s.", "Description": "Count counts the number of non-overlapping instances of substr in s.\nIf substr is an empty string, Count returns 1 + the number of Unicode code points in s.",