You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contributing_to_docs/doc_guidelines.adoc
+34-1Lines changed: 34 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,6 +92,36 @@ Try to shorten the file name as much as possible _without_ abbreviating importan
92
92
93
93
If you create a directory with a multiple-word name, separate each word with an underscore, for example `backup_and_restore`. Do not create a top-level directory in the repository without checking with the docs team. In the main OpenShift docs, you can create one level of subdirectories. In the docs for features that are designed to be used with OpenShift, such as Service Mesh and OpenShift virtualization, you can create two levels of subdirectories.
94
94
95
+
When creating a new directory or subdirectory, you must create two symbolic links in it:
96
+
97
+
* An `images` symbolic link to the top-level `images/` directory
98
+
* A `modules` symbolic link to the top-level `modules/` directory
99
+
100
+
If the directory that contains an assembly does not have the `images` symbolic link, any images in that assembly or its modules will not be included properly when building the docs.
101
+
102
+
[TIP]
103
+
====
104
+
To create the symbolic links:
105
+
106
+
. Navigate to the directory that you need to add the links in.
107
+
. Use the following command to create a symbolic link:
108
+
+
109
+
----
110
+
$ ln -s <target_directory> <link_name>
111
+
----
112
+
+
113
+
For example, if you are creating the links in a directory that is two levels deep, such as `cli_reference/openshift_cli`, use the following commands:
114
+
+
115
+
----
116
+
$ ln -s ../../images/ images
117
+
$ ln -s ../../modules/ modules
118
+
----
119
+
+
120
+
Be sure to adjust the number of levels to back up (`../`) depending on how deep your directory is.
121
+
122
+
If you accidentally create an incorrect link, you can remove that link by using `unlink <link_name>`.
123
+
====
124
+
95
125
== Assembly/Module titles and section headings
96
126
97
127
Use sentence case in all titles and section headings. See http://www.titlecase.com/ or https://convertcase.net/ for a conversion tool.
@@ -549,7 +579,10 @@ If a documentation change is due to a Bugzilla bug or Jira issue, the bug/issue
549
579
550
580
To include a block image (an image on its own line):
551
581
552
-
1. Put the image file in the symlinked `images` folder.
582
+
1. Put the image file in the `images` folder.
583
+
+
584
+
Ensure that the folder containing your assembly contains an `images` symbolic link to the top-level `images/` directory, otherwise the image will not be found when building the docs.
585
+
553
586
2. In the `.adoc` content, use this format to link to the image:
0 commit comments