Skip to content

Commit 9c0de50

Browse files
authored
Merge pull request #31596 from bergerhoffer/updating-guidelines-symlinks
Updating guidelines to point out the required symbolic links
2 parents 25ef18e + 2ddbb9a commit 9c0de50

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

contributing_to_docs/doc_guidelines.adoc

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,36 @@ Try to shorten the file name as much as possible _without_ abbreviating importan
9292

9393
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.
9494

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+
95125
== Assembly/Module titles and section headings
96126

97127
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
549579

550580
To include a block image (an image on its own line):
551581

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+
553586
2. In the `.adoc` content, use this format to link to the image:
554587
+
555588
----

0 commit comments

Comments
 (0)