Skip to content

Commit 63626e9

Browse files
Merge pull request containers#10766 from Procyhon/13062021_manpage
[CI:DOCS] Follow-up to PR 10676
2 parents fc34f35 + 7d83f9b commit 63626e9

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

docs/MANPAGE_SYNTAX.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ podman\-command - short description
55

66
## SYNOPSIS
77
(Shows the command structure. If the command can be written in two different ways, both of them have to be shown.\
8-
Many manpages include the OPTIONS **--all**, **-a** and/or **--latest**, **-l**. In this case there is no `container name` or `ID` needed after the initial command. Because most of the other OPTIONS still need the `container name` or ` ID`, it is defined that the *container* argument in the command should **not** be put in brackets. It should also be noted in the *IMPORTANT* section in the description of the OPTION with the following sentence: *IMPORTANT: This OPTION does not need a container name or ID as input argument.*.)
8+
Many manpages include the OPTIONS **--all**, **-a** and/or **--latest**, **-l**. In this case, there is no `container name` or `ID` needed after the initial command. Because most of the other OPTIONS still need the `container name` or ` ID`, it is defined that the *container* argument in the command should **not** be put in brackets. It should also be noted in the *IMPORTANT* section in the description of the OPTION with the following sentence: *IMPORTANT: This OPTION does not need a container name or ID as input argument.*.)
99

1010
**podman command** [*optional*] *mandatory value*
1111

@@ -36,7 +36,9 @@ Example for the first sentence: **podman command** is an example command.
3636
Commands or files that are quoted from other podman manpages or podman repositories have to be linked to those. Non-podman commands are not to be linked.\
3737
Example sentence: Use **[podman-run](podman-run.1.md)** or **[containers.conf(5)](https://github.com/containers/common/blob/master/docs/containers.conf.5.md)** for the problem.
3838

39-
It should also be specified if the command can only be run as root. In addition, it should be described when a command, OPTION, or other content cannot be executed with the remote client or in combination with other commands, OPTIONS, or content. In this case, the following sentence is put at the end of a command, OPTION, or content: *IMPORTANT: This OPTION/command/other is not available with the command/OPTION/content/remote Podman client*. For a command, this should be done in the DESCRIPTION section. For the OPTIONS, it should be done in the DESCRIPTION of the specified OPTION.
39+
It should also be specified if the command can only be run as root. In addition, it should be described when a command, OPTION, or other content cannot be executed with the remote client or in combination with other commands, OPTIONS, or content. In this case, the following sentence is put at the end of a command, OPTION, or content:\
40+
*IMPORTANT: This command/OPTION/content is not available with the command/OPTION/content/on the remote Podman client.*\
41+
For a command, this should be done in the DESCRIPTION section. For the OPTIONS, it should be done in the DESCRIPTION of the specified OPTION.
4042

4143
Do not use pronouns in the man pages, especially the word `you`.
4244

@@ -48,11 +50,11 @@ All flags are referred to as OPTIONS. The term flags should not be used. All OPT
4850
OPTIONS that are quoted from other podman manpages or podman repositories have to be linked to those.\
4951
Example sentence: Use **[podman-generate-systemd --new](./source/markdown/podman-generate-systemd.1.md#--new)** for the problem.
5052

51-
Each OPTION should be explained to the fullest extent below the OPTION itself. Each OPTION is behind an H4-header (`####`). If the OPTION has a default argument, it has to be explained in the description of the OPTION. If the OPTION is also not available with a command/OPTION/content/remote Podman client, the sentence about the default argument should the second to last sentence. The sentence about the default argument should be in a new line as well as the *IMPORTANT* sentence.
53+
Each OPTION should be explained to the fullest extent below the OPTION itself. Each OPTION is behind an H4-header (`####`). If the OPTION has a default argument, it has to be explained in the description of the OPTION. If the OPTION is also not available with a command/OPTION/content/ on the remote Podman client, the sentence about the default argument should the second to last sentence. The sentence about the default argument should be in a new line as well as the *IMPORTANT* sentence.
5254

5355
All OPTIONS are to be sorted in alphabetical order.
5456

55-
Tables should be used when there is a different definition for different arguments and these have to be explained. This is shown with the OPTION **--test**.\
57+
Tables should be used when there is a different definition for multiple arguments, and these have to be explained. This is shown with the OPTION **--test**.\
5658
Lists should be used when arguments are used that do not need a definition for each argument and a single description explains them. An example is shown with **[podman-commit --change](./source/markdown/podman-commit.1.md#--change--cinstruction)**
5759

5860

@@ -68,17 +70,17 @@ An example of an OPTION that has only one possible structure. Thus, it cannot be
6870

6971
#### **--answer**=, **-a**=**active** | *disable*
7072

71-
The **--answer** OPTION above is an example of an OPTION that accepts two possible arguments as inputs. If there is a default argument that is selected when the OPTION is not used in the command, it is shown in **bold**. If the OPTION is used it must include an argument afterwards. It must always be ensured that the standard argument is in the first position after the OPTION. In this example, there are two different ways to execute the command. Both possible OPTIONS have to be shown with the arguments following them.\
73+
The **--answer** OPTION above is an example of an OPTION that accepts two possible arguments as inputs. If a default argument is selected when the OPTION is not used in the command, it is shown in **bold**. If the OPTION is used, it must include an argument afterward. It must always be ensured that the standard argument is in the first position after the OPTION. In this example, there are two different ways to execute the command. Both possible OPTIONS have to be shown with the arguments following them.\
7274
The default value is shown as **active**.
7375

7476
#### **--status**=**good** | *better* | *best*
7577

76-
This is an example of three arguments following an OPTION. If the number of arguments is greater than three, the arguments are **not** listed after the equal sign. The arguments have to be shown in a table like in **--test**=**_test_**. This form should also be used if the understanding of the content is in danger of becoming incomprehensible. An example for this is **[podman-container-prune --filters](./source/markdown/podman-container-prune.1.md#--filterfilters)**.\
78+
This is an example of three arguments following an OPTION. If the number of arguments is greater than three, the arguments are **not** listed after the equal sign. The arguments must be shown in a table like in **--test**=**_test_**. This form should also be used if the understanding of the content is in danger of becoming incomprehensible. An example for this is **[podman-container-prune --filters](./source/markdown/podman-container-prune.1.md#--filterfilters)**.\
7779
The default value is shown as **good**.
7880

7981
#### **--test**=**test**
8082

81-
OPTIONS that are followed by an equal sign include an argument after the equal sign in **bold** or *italic*. If there is a default argument, that is used if the OPTION is not specified in the command, the argument after the equal sign is displayed in **bold**. All arguments must be listed and explained in the text below the OPTION.
83+
OPTIONS that are followed by an equal sign include an argument after the equal sign in **bold** or *italic*. If there is a default argument that is used if the OPTION is not specified in the command, the argument after the equal sign is displayed in **bold**. All arguments must be listed and explained in the text below the OPTION.
8284

8385
| Argument | Description |
8486
| ------------------ | --------------------------------------------------------------------------- |
@@ -88,7 +90,7 @@ OPTIONS that are followed by an equal sign include an argument after the equal s
8890
| *example four* | Example: Can be combined with **--exit**. |
8991
| *example five* | The fifth description |
9092

91-
The table shows an example for a listing of arguments. The contents in the table should be aligned left. If the content in the table conflicts with this, it can be aligned in a way that supports the understanding of the content. If there is a default argument, it **must** listed as the first entry in the table.\
93+
The table shows an example for a listing of arguments. The contents in the table should be aligned left. If the content in the table conflicts with this, it can be aligned to support the understanding of the content. If there is a default argument, it **must** be listed as the first entry in the table.\
9294
The default value is shown as **example one**.
9395

9496
If the number of arguments is smaller than four they have to be listed behind the OPTION as seen in the OPTION **--status**.
@@ -137,4 +139,4 @@ Normally, the dates of changes, the content of the changes and the person who pr
137139
Example:\
138140
December 2021, Originally compiled by Alexander Richter <[email protected]>
139141

140-
`A new line is needed of the end of every manpage.`
142+
`Every manpage should end with an empty line.`

docs/source/markdown/podman-container-prune.1.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Supported filters:
2121
| Filter | Description |
2222
| :----------------: | --------------------------------------------------------------------------- |
2323
| *until* | Only remove containers and images created before given timestamp. |
24-
| *label* | Only remove containers and images, with (or without, in case label!=[...] is used) the specified labels. |
24+
| *label* | Only remove containers and images, with (or without, in the case of label!=[...] is used) the specified labels. |
2525

2626
The `until` *filter* can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. 10m, 1h30m) computed relative to the machine’s time.
2727

@@ -60,7 +60,6 @@ ed0c6468b8e1cb641b4621d1fe30cb477e1fefc5c0bceb66feaf2f7cb50e5962
6060
6ac6c8f0067b7a4682e6b8e18902665b57d1a0e07e885d9abcd382232a543ccd
6161
fff1c5b6c3631746055ec40598ce8ecaa4b82aef122f9e3a85b03b55c0d06c23
6262
602d343cd47e7cb3dfc808282a9900a3e4555747787ec6723bb68cedab8384d5
63-
6463
```
6564

6665
Remove all stopped containers from local storage created within last 10 minutes

docs/source/markdown/podman-container-restore.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The default is **false**.
3131

3232
#### **--latest**, **-l**
3333

34-
Instead of providing the *container ID* or *name*, use the last created *container*. If other methods than Podman are used to run *containers* such as `CRI-O`, the last started *container* could be from either of those methods.\
34+
Instead of providing the *container ID* or *name*, use the last created *container*. If other tools than Podman are used to run *containers* such as `CRI-O`, the last started *container* could be from either tool.\
3535
The default is **false**.\
3636
*IMPORTANT: This OPTION is not available with the remote Podman client. This OPTION does not need a container name or ID as input argument.*
3737

0 commit comments

Comments
 (0)