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
FCCEUD-79 Updates to pantheon2.yml file configuration descriptions (#630)
* fcceud-79 updates to pantheon2.yml file configuration descriptions
* fcceud-79 updates following tech review
* variants definitionand example
* fcceud-79 updates following review input and suggestions
* emarcusRH-fcceud-79 Various clarifications and other edits.
Co-authored-by: emarcusRH <[email protected]>
Copy file name to clipboardExpand all lines: pantheon-bundle/src/main/resources/SLING-INF/content/docs/modules/con_pantheon_yaml_file.adoc
+47-11Lines changed: 47 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,8 @@
5
5
The configuration file, named `pantheon2.yml`, resides in the root directory of your documentation repository. You use this file to designate a Git repository as a source that {ProductShortName} can use to import content. This configuration file provides the information necessary for {ProductShortName} to interact with files in the repository.
6
6
7
7
////
8
-
// Keeping this section because the status of the Uploader tool is not clear. It might be relevant in the future.
8
+
Keeping this section because the status of the Uploader tool is not clear. It might be relevant in the future.
9
9
The configuration file enables you to perform the following actions:
10
-
11
10
* Import content from a Git repository into {ProductShortName}
12
11
* Upload {ContentTerm} into {ProductShortName} using the Uploader tool
13
12
////
@@ -16,18 +15,55 @@ The configuration file enables you to import content from a Git repository into
16
15
17
16
The {ProductShortName} configuration file defines the following parameters:
18
17
19
-
* `server` The URL of the {ProductShortName} server.
20
-
* `repositories` A multi-valued structure with the following child members:
18
+
`server`:: (Required) The URL of the {ProductShortName} server.
19
+
`repository`:: (Required) The name of the repository. It is recommended not to include spaces in the repository name.
20
+
`variants`:: (Required) Separate sets of output built on the same set of files and differentiated by these values: `name`, `path`, and `canonical`. Modules and assemblies can have variants to differentiate how they are used, and what output is created.
21
21
+
22
-
** `name` (optional) A unique ID that displays in URLs on the {ProductShortName} site when you view modules and assemblies.
22
+
** `name` (Optional) A unique ID that is displayed in URLs on the {ProductShortName} site when you view modules and assemblies. If no value is provided for `name`, this field is defined as *DEFAULT*.
23
23
+
24
24
For example, if you specify `name: rhel_docs`, and one of your files is named [filename]`foo.adoc`, the module's URL in {ProductShortName} is:
** `path` (Optional) The path containing resource files, such as `attributes.adoc`.
27
+
** `canonical` (Required) The primary variant of content. If a search engine sees multiple variants of the same piece of content (HTML page or a group of pages) it needs to know what the primary or original one is to establish ranking. Declaring a piece of content as `canonical` tells the search engine to treat that piece of content as the canonical variant. The canonical declaration is transformed into HTML meta data. Possible values: `*true*` or `*false*`.
28
+
29
+
`assemblies`:: (optional) The path to assemblies in the repository that should be uploaded. The path can include specific files or a pattern, such as `*.adoc` to include only `.adoc` files, or `**` to include all files.
30
+
`modules`:: Path to modules in the repository that should be uploaded.
31
+
`resources`:: (optional) Attributes, image files, snippets, legal information, or other content that is not a complete module or assembly.
32
+
33
+
[NOTE]
34
+
====
35
+
File paths can indicate specific files, or file patterns. For example:
36
+
37
+
* This will upload everything inside `assemblies/`: `assemblies/**`
38
+
* This will only upload `.adoc` files inside `assemblies/`: `assemblies/*.adoc`
39
+
====
40
+
41
+
.Examples of variants:
42
+
43
+
** Document level - _Installing RHV using the command line_; _Installing RHV using the Administration Portal_.
44
+
** Module level - The same module is published in multiple Red Hat documents, such as _Red Hat Decision Manager_, _Red Hat Process Automation Manager_.
In the above example, the assemblies and modules for both rhel9 and rhel8 variants are in the same directories, `rhel/assemblies/` and `rhel/modules/`. Depending on the value of their attributes, {ProductShortName} creates the separate variants.
0 commit comments