Skip to content

Commit edf5b9d

Browse files
slusarzcmouse
authored andcommitted
data: Update documentation to reflect exactly which fields are processed with Markdown
1 parent 30c0946 commit edf5b9d

File tree

6 files changed

+23
-11
lines changed

6 files changed

+23
-11
lines changed

data/doveadm.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const doveadm = {
3030
// The argument type
3131
type: doveadm_arg_types.BOOL,
3232

33-
// Description of the parameter
33+
// Description of the parameter. Rendered w/Markdown.
3434
text: `Do a reverse move?`,
3535
},
3636
query: doveadm_args_query,
@@ -39,14 +39,14 @@ export const doveadm = {
3939
// Change Documentation
4040
// added: {
4141
// // KEY = update identifier (see data/updates.js)
42-
// // VALUE = Text to display
42+
// // VALUE = Text to display. Rendered w/Markdown.
4343
// 'update_identifier': `Update description`
4444
// },
4545
// changed: {},
4646
// deprecated: {},
4747
// removed: {},
4848

49-
// Fields/Values returned. Values are processed w/Markdown
49+
// Fields/Values returned. Values are rendered w/Markdown.
5050
// fields: {},
5151

5252
// What doveadm flags does this command support (bit field)
@@ -62,7 +62,7 @@ export const doveadm = {
6262
// Tag name(s). String or array.
6363
// tags: 'foo', // or [ 'foo1', 'foo2', ... ]
6464

65-
// Summary of command. Processed w/Markdown
65+
// Summary of command. Rendered w/Markdown.
6666
text: `
6767
Move mails between primary and alternative mailbox storage locations.
6868

data/event_categories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const categories = {
88
auth: {
99
// Category type
1010
category: 'root',
11-
// Category description (rendered with Markdown)
11+
// Category description. Rendered w/Markdown.
1212
description: `Authentication (server mainly)`
1313
},
1414

data/event_reasons.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
* Keys are reasons, Values are object. */
44

55
export const reasons = {
6+
7+
// KEY: Event reason
68
'storage:autoexpunge': {
9+
// Category type
710
category: 'storage',
11+
// Category description. Rendered w/Markdown.
812
description: `Mails are being autoexpunged`
913
},
1014

data/events.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ export const events = {
5252
// removed: {
5353
// <tag>: `Description of change (or 'false')`,
5454
// },
55-
// Field Description
55+
// Field Description. Rendered w/Markdown
5656
// text: ``,
5757
// }
5858
},
5959

60-
// Summary of event. Processed w/Markdown.
60+
// Summary of event. Rendered w/Markdown.
6161
text: `Emitted when a message is expunged from a mailbox.`
6262
},
6363

data/lua.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,22 @@
22

33
export const lua_functions = {
44

5+
// KEY: Lua function signature
56
'dovecot.i_debug(text)': {
7+
// List of function arguments
68
params: {
9+
// Argument label (should match function signature example)
710
text: {
11+
// Argument type
812
type: 'string',
13+
// Argument description. Rendered w/Markdown.
914
text: `Message to log.`
1015
},
1116
},
17+
// List of tags to associate with this function (used for display
18+
// separation)
1219
tags: [ 'base '],
20+
// Function description. Rendered w/Markdown.
1321
text: `Log debug level message.`
1422
},
1523

data/settings.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const settings = {
1111
// Change Documentation
1212
// KEY = update identifier (see data/updates.js)
1313
// VALUE = Text to display. "false" means only the version
14-
// and change type is displayed
14+
// and change type is displayed. Rendered w/Markdown.
1515
// added: {
1616
// 'update_identifier': `Update description`
1717
// },
@@ -20,10 +20,10 @@ export const settings = {
2020
// removed: {},
2121

2222
// Default value of the setting. If not set, is displayed as "None".
23-
// This can be markdown.
23+
// Rendered w/Markdown.
2424
// default: '',
2525

26-
// A list of "See Also" links to display. This can be markdown.
26+
// A list of "See Also" links to display. Rendered w/Markdown.
2727
// Text entries are processed as inter-settings links.
2828
// seealso: [],
2929

@@ -41,7 +41,7 @@ export const settings = {
4141
// in a separate section on the All Settings page.
4242
advanced: true,
4343

44-
// Setting description. Markdown can be used.
44+
// Setting description. Rendered w/Markdown.
4545
text: `
4646
If the destination for proxying matches any of the IP addresses listed
4747
here, proxying is not performed when \`proxy_maybe=yes\` is returned.

0 commit comments

Comments
 (0)