File: action_doc.txt

package info (click to toggle)
librnd 4.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,812 kB
  • sloc: ansic: 126,990; sh: 2,602; makefile: 2,145; awk: 7
file content (38 lines) | stat: -rw-r--r-- 1,440 bytes parent folder | download | duplicates (5)
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
How to document actions
~~~~~~~~~~~~~~~~~~~~~~~

Detailed action doc lives in trunk/doc/user/09_appendix/action_src in
almost-html files. There is no html header and the standard tags in use
are restricted to: b, i, p, pre, ul, li, table, tr, td.

There are a few extra, non-standard tags:

- <arg> argname </arg> names an argument of the current action
- <act> actname </act> links to another action; actname is all lowercase

The name of the file should be actname.html.

Documentation policy:

	- do not document the trivial - do not write alibi docs. We do not want
	  action doc to just repeat the syntax description. Please explore
	  what the action does, all aspects, all use cases; see if the syntax
	  help string already covers everything and the action is trivial to use;
	  if so, the action does not need any more documentation

	- after creating the html doc, please add a
	  /* DOC: actname.html */
	  comment above the action function in the source code

	- the doc is high level in the sense that it should tell the basic ideas
	  behind the action, how to use it, what it is for

	- it should not tell much about what bigger scheme it fits in (that's
	  even higher level, plugin doc; but should cross link relevant sibling
	  actions)

	- it should not repeat low level info (e.g. enumerate possible arguments
	  from the syntax string) if no extra info is added

	- do not do custom styling, the doc format is unified