1
2
3
4
5
6
7
8
9
10
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
This page proposes some changes to the content of the Tcl (and Tk) manual pages, as follow-up to [TIP 700](wiki:branch/tip-700).
# General changes
## Overall structure/outline of manual pages
Sections should be the same in all cases:
- Name
- Synopsis
- Description (subsections for each subcommand)
- ... (additional sections possible here for individual pages needing them)
- Examples (subsections for grouping examples, if needed)
- Portability issues (if applicable)
- See also -> now in metadata, so can be placed dynamically depending on the output format
- Keywords -> now in metadata, so can be placed dynamically depending on the output format
## Example code
Each manual page should have at least one example for the basic usage of a command
The code examples use different ways of showing resulting values (sometimes after the code line in italics, sometimes in a new line with an arrow in front). This should be unified and made visually pleasing.
|
215
216
217
218
219
220
221
|
229
230
231
232
233
234
235
236
237
238
239
240
|
+
+
+
+
+
|
1. The [thread](https://www.tcl-lang.org/man/tcl9.0/ThreadCmd/thread.html) page has a link in the "See also" section which is a URL to a page von www.tck.tk. That page is kind of a tutorial (and is interestingly not reachable when just browsing the site, no link leads here). It should not be listed in the "See also" section. Generally, such links not being internal to the manual pages, should be in a different section of the manual pages, preferrably in a section dedicated to tutorials so we can have a common place to link tutorials to manual pages.
------
## tcltest
1. The `normalizeMsg` command is only documented to remove "extra" newlines. However, it also removed uppercase letter in the `msg`. This should be documented.
# Other considerations
- see [this tcllib document](https://core.tcl-lang.org/tcllib/file?name=devdoc/doc-policy.man) for another attempt.
|