forked from tidepool-org/tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docoptions.json
52 lines (52 loc) · 1.37 KB
/
docoptions.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
"formats": {
"Copy": [{
"pattern": "\\s*(?P<text>.*)",
"formatter": "%(text)s\n"
}],
"General": "Copy",
"_": "Copy",
"Function": [
{
"pattern": "(?P<funcname>[A-Za-z0-9$_]+)\\s*\\((?P<args>[^\\)]*)\\)",
"formatter": "### %(funcname)s\n* ```%(funcname)s (%(args)s)```\n"
}
],
"_default": [{
"pattern": "(?P<text>.*)",
"formatter": "%(blockid)s: %(text)s\n"
}],
"Setup": [{
"pattern": "(?P<text>.*)",
"formatter": "\n## Setup\n```%(text)s```\n\n"
}],
"Heading": [{
"pattern": "\\s*(?P<text>[^ ].*)",
"formatter": "\n## %(text)s\n\n"
}],
"Params": [{
"pattern": "(?P<parm>[A-Za-z0-9$_]+)\\s*--\\s*(?P<desc>.*)",
"formatter": " * ```%(parm)s``` -- %(desc)s\n"
}],
"Desc": [{
"pattern": "\\s*(?P<text>.*)",
"formatter": "*%(text)s*\n"
}],
"Args": [
{
"pattern": "(?P<parm>[A-Za-z0-9$_]+)\\s*--\\s*(?P<desc>.*)",
"formatter": " * ```%(parm)s``` -- %(desc)s\n"
},
{
"pattern": "(?P<funcname>[A-Za-z0-9$_]+)\\s*\\((?P<args>[^\\)]*)\\)",
"formatter": " * ```%(funcname)s (%(args)s)```\n"
}
],
"CallbackArgs": [
{
"pattern": "(?P<parm>[A-Za-z0-9$_]+)\\s*--\\s*(?P<desc>.*)",
"formatter": " * ```%(parm)s``` -- %(desc)s\n"
}
]
}
}