mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
doc fix
This commit is contained in:
parent
11ec65a68c
commit
f85bbd0124
@ -39,7 +39,7 @@ def htmlify(d):
|
||||
d = re.sub(r'```([^`]+)```', r'<code>\1</code>', d) # code tags
|
||||
d = re.sub(r'`([^`]+)`', r'<code>\1</code>', d) # code tags
|
||||
d = re.sub(r'\[([^\]]*)\]\(([^\)]*)\)', r'<a href="\2">\1</a>', d) # links tags
|
||||
d = re.sub(r'[^">](http://[^ ]+)', r'<a href="\1">\1</a>', d) # links tags
|
||||
d = re.sub(r'([^">])(http://[^ ]+)', r'\1<a href="\2">\2</a>', d) # links tags
|
||||
return d
|
||||
|
||||
def html_description(ds,current):
|
||||
|
||||
@ -34,7 +34,7 @@ void jswrap_interface_setBusyIndicator(JsVar *pinVar) {
|
||||
|
||||
/*JSON{ "type":"function", "name" : "setSleepIndicator",
|
||||
"description" : ["When Espruino is asleep, set the pin specified here low (when it's awake, set it high). Set this to undefined to disable the feature.",
|
||||
"Please see [http://www.espruino.com/Power+Consumption] for more details on this."],
|
||||
"Please see http://www.espruino.com/Power+Consumption for more details on this."],
|
||||
"generate" : "jswrap_interface_setSleepIndicator",
|
||||
"params" : [ [ "pin", "JsVar", ""] ]
|
||||
}*/
|
||||
@ -50,7 +50,7 @@ void jswrap_interface_setSleepIndicator(JsVar *pinVar) {
|
||||
|
||||
/*JSON{ "type":"function", "name" : "setDeepSleep",
|
||||
"description" : [ "Set whether we can enter deep sleep mode, which reduces power consumption to around 100uA. This only works on the Espruino Board.",
|
||||
"Please see [http://www.espruino.com/Power+Consumption] for more details on this." ],
|
||||
"Please see http://www.espruino.com/Power+Consumption for more details on this." ],
|
||||
"generate" : "jswrap_interface_setDeepSleep",
|
||||
"params" : [ [ "sleep", "bool", ""] ]
|
||||
}*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user