Skip to content

Commit 1402408

Browse files
authored
Merge pull request #32197 from jeana-redhat/path-replacement-values
User-replaced values: added examples showing mutliple words and a file path
2 parents bba4e12 + 4d9afc8 commit 1402408

File tree

1 file changed

+37
-6
lines changed

1 file changed

+37
-6
lines changed

contributing_to_docs/doc_guidelines.adoc

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ In the Atom editor, you can use `Ctrl`+`J` to undo hard wrapping on a paragraph.
2121
====
2222

2323
== Assembly file metadata
24-
25-
Every assembly file should contain the following metadata at the top, with no line
26-
spacing in between, except where noted:
24+
Every assembly file should contain the following metadata at the top, with no line spacing in between, except where noted:
2725

2826
----
2927
[id="<unique-heading-for-assembly>"] <1>
@@ -905,9 +903,7 @@ Now using project "my-project" on server "https://openshift.example.com:6443".
905903
----
906904
....
907905

908-
* To mark up command syntax, use the code block and wrap any replaceable values in
909-
angle brackets (`<>`) with the required command parameter, using underscores
910-
(`_`) between words as necessary for legibility. For example:
906+
* To mark up command syntax, use the code block and wrap any replaceable values in angle brackets (`<>`) with the required command parameter, using underscores (`_`) between words as necessary for legibility. For example:
911907
+
912908
....
913909
To view a list of objects for the specified object type, enter the following command:
@@ -930,6 +926,33 @@ This renders as:
930926
+
931927
NOTE: Avoid using full command syntax inline with sentences.
932928

929+
* When referring to a path to a location that the user has selected or created, treat the part of the path that the user chose as a replaceable value. For example:
930+
+
931+
....
932+
Create a secret that contains the certificate and key in the `openshift-config` namespace:
933+
934+
[source,terminal]
935+
----
936+
$ oc create secret tls <certificate> --cert=<path_to_certificate>/cert.crt --key=<path_to_key>/cert.key -n openshift-config
937+
----
938+
....
939+
+
940+
This renders as:
941+
+
942+
--
943+
> Create a secret that contains the certificate and key in the `openshift-config` namespace:
944+
>
945+
> ----
946+
> $ oc create secret tls <certificate> --cert=<path_to_certificate>/cert.crt --key=<path_to_key>/cert.key -n openshift-config
947+
> ----
948+
--
949+
+
950+
The following example shows a more complex use of user-chosen elements and prescriptive placement:
951+
+
952+
....
953+
<resource_group_name>/providers/Microsoft.Compute/diskEncryptionSets/<disk_encryption_set_name>
954+
....
955+
933956
* If you must provide additional information on what a line of a code block
934957
represents, use callouts (`<1>`, `<2>`, etc.) to provide that information.
935958
+
@@ -1663,12 +1686,20 @@ a|
16631686
`<project>`
16641687
16651688
`<deployment>`
1689+
1690+
`<install_mode_value>`
16661691
....
16671692

16681693
a|
16691694
> Use the following command to roll back a Deployment, specifying the Deployment name:
16701695
>
16711696
> `oc rollback <deployment>`
1697+
>
1698+
> &nbsp;
1699+
>
1700+
> Apply the new configuration file:
1701+
>
1702+
> `oc apply -f <path_to_configuration_file>/<filename>.yaml`
16721703

16731704
|Use single asterisks for web console / GUI items (menus, buttons, page titles, etc.).
16741705
Use two characters to form the arrow in a series of menu items (`$$->$$`).

0 commit comments

Comments
 (0)