shithub: hugo

Download patch

ref: a358b33f262e2de61b58cf9f2071a4a898e55bef
parent: a392fca962e1ee56e3fe6cea75b8c4ba5d853583
author: Bjørn Erik Pedersen <[email protected]>
date: Thu Jul 6 06:36:13 EDT 2017

docs: Regenerate the docs helpers

--- a/docs/data/docs.json
+++ b/docs/data/docs.json
@@ -6,7 +6,8 @@
         "String": "application/javascript+js",
         "MainType": "application",
         "SubType": "javascript",
-        "Suffix": "js"
+        "Suffix": "js",
+        "Delimiter": "."
       },
       {
         "Type": "application/json",
@@ -13,7 +14,8 @@
         "String": "application/json+json",
         "MainType": "application",
         "SubType": "json",
-        "Suffix": "json"
+        "Suffix": "json",
+        "Delimiter": "."
       },
       {
         "Type": "application/rss",
@@ -20,7 +22,8 @@
         "String": "application/rss+xml",
         "MainType": "application",
         "SubType": "rss",
-        "Suffix": "xml"
+        "Suffix": "xml",
+        "Delimiter": "."
       },
       {
         "Type": "application/xml",
@@ -27,7 +30,8 @@
         "String": "application/xml+xml",
         "MainType": "application",
         "SubType": "xml",
-        "Suffix": "xml"
+        "Suffix": "xml",
+        "Delimiter": "."
       },
       {
         "Type": "text/calendar",
@@ -34,7 +38,8 @@
         "String": "text/calendar+ics",
         "MainType": "text",
         "SubType": "calendar",
-        "Suffix": "ics"
+        "Suffix": "ics",
+        "Delimiter": "."
       },
       {
         "Type": "text/css",
@@ -41,7 +46,8 @@
         "String": "text/css+css",
         "MainType": "text",
         "SubType": "css",
-        "Suffix": "css"
+        "Suffix": "css",
+        "Delimiter": "."
       },
       {
         "Type": "text/csv",
@@ -48,7 +54,8 @@
         "String": "text/csv+csv",
         "MainType": "text",
         "SubType": "csv",
-        "Suffix": "csv"
+        "Suffix": "csv",
+        "Delimiter": "."
       },
       {
         "Type": "text/html",
@@ -55,7 +62,8 @@
         "String": "text/html+html",
         "MainType": "text",
         "SubType": "html",
-        "Suffix": "html"
+        "Suffix": "html",
+        "Delimiter": "."
       },
       {
         "Type": "text/plain",
@@ -62,7 +70,8 @@
         "String": "text/plain+txt",
         "MainType": "text",
         "SubType": "plain",
-        "Suffix": "txt"
+        "Suffix": "txt",
+        "Delimiter": "."
       }
     ]
   },
@@ -170,6 +179,21 @@
         ]
       },
       {
+        "Example": "AMP home, French language\".",
+        "OutputFormat": "AMP",
+        "Suffix": "html",
+        "Template Lookup Order": [
+          "layouts/index.fr.amp.html",
+          "layouts/index.amp.html",
+          "layouts/index.fr.html",
+          "layouts/index.html",
+          "layouts/_default/list.fr.amp.html",
+          "layouts/_default/list.amp.html",
+          "layouts/_default/list.fr.html",
+          "layouts/_default/list.html"
+        ]
+      },
+      {
         "Example": "JSON home, no theme.",
         "OutputFormat": "JSON",
         "Suffix": "json",
@@ -958,6 +982,19 @@
             [
               "{{div 6 3}}",
               "2"
+            ]
+          ]
+        },
+        "Log": {
+          "Description": "",
+          "Args": [
+            "a"
+          ],
+          "Aliases": null,
+          "Examples": [
+            [
+              "{{math.Log 1}}",
+              "0"
             ]
           ]
         },