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
+25-14Lines changed: 25 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ link:https://redhat-documentation.github.io/modular-docs/[_Red Hat modular docs
9
9
10
10
[NOTE]
11
11
====
12
-
These _Documentation guidelines_ are primarily concerned with the modular structure and AsciiDoc / AsciiBinder requirements for building OpenShift documention. For general style guidelines in OpenShift docs, see the following:
12
+
These _Documentation guidelines_ are primarily concerned with the modular structure and AsciiDoc / AsciiBinder requirements for building OpenShift documentation. For general style guidelines in OpenShift docs, see the following:
* Supplementary source: link:https://redhat-documentation.github.io/supplementary-style-guide/[_Red Hat supplementary style guide for product documentation_]
@@ -207,23 +207,29 @@ Try to shorten the file name as much as possible _without_ abbreviating importan
207
207
208
208
== Directory names
209
209
210
-
If you create a directory with a multiple-word name, separate each word with an underscore, for example `backup_and_restore`.
210
+
When creating a new directory, follow these guidelines:
211
211
212
-
Do not create or rename a top-level directory in the repository and topic map without checking with the docs program manager first.
212
+
* Use underscores to separate multiple-word directory names, for example, `backup_and_restore`.
213
+
* Create the symbolic links for the `images`, `modules`, `snippets` and `_attributes` directories. See xref:symbolic-links[Symbolic links] for instructions.
214
+
* Use the CLI (`mkdir <directory_name>`) instead of an editor, to avoid potential syncing issues.
215
+
* Do not copy another directory or its symbolic links when creating the new directory, to avoid issues with the symbolic links.
216
+
* Do not create or rename a top-level directory in the repository and topic map without checking with the docs program manager first. If a book is being created or modified, there are changes on the Customer Portal that must also be made.
213
217
214
-
Avoid creating two levels of subdirectories because the link:https://github.com/openshift/openshift-docs/issues/52149[breadcrumb bar on docs.openshift.com breaks]. If you have a valid use case for two levels of subdirectories, talk with your DPM/CS (and, for aligned teams, the OpenShift DPM) for approval before creating it.
218
+
[[symbolic-links]]
219
+
=== Symbolic links
215
220
216
-
When creating a new directory or subdirectory, you must create four symbolic links in it:
221
+
When creating a new directory or subdirectory, you must create these four symbolic links in it:
217
222
218
223
* An `images` symbolic link to the top-level `images/` directory
219
224
* A `modules` symbolic link to the top-level `modules/` directory
220
225
* A `snippets` symbolic link to the top-level `snippets/` directory
221
226
* An `_attributes` symbolic link to the top-level `_attributes/` directory
222
227
223
-
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.
224
-
225
-
[TIP]
228
+
[IMPORTANT]
226
229
====
230
+
If these symbolic links aren't included in an assembly's directory, any images in that assembly or its modules are not included properly when building the docs.
231
+
====
232
+
227
233
To create the symbolic links:
228
234
229
235
. Navigate to the directory that you need to add the links in.
Be sure to adjust the number of levels to back up (`../`) depending on how deep your directory is.
246
253
247
-
If you accidentally create an incorrect link, you can remove that link by using `unlink <link_name>`.
248
-
====
254
+
If you accidentally create an incorrect symbolic link, you can remove that link by using `unlink <link_name>`. For example, the following commands unlink an incorrect `images` symbolic link in the `cli_reference/openshift_cli` directory:
255
+
256
+
----
257
+
[openshift-docs ~]$ cd cli_reference/openshift_cli
0 commit comments