Skip to content

Commit cf02435

Browse files
pabel-rhGerry-Forde
authored andcommitted
RHIDP-9010: AEM-related changes (redhat-developer#1426)
* AEM-related changes * Minor change Judy's comment * Incorporated Fabrice's comments * Incorporated Judy's comments * Incorporated Fabrice's final comments
1 parent a9830e1 commit cf02435

25 files changed

+239
-217
lines changed

assemblies/assembly-configuring-the-quickstarts.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ include::modules/configuring-the-quickstarts/con-about-quickstarts.adoc[leveloff
88

99
include::modules/configuring-the-quickstarts/proc-customize-rhdh-quickstart.adoc[leveloffset=+1]
1010

11+
include::modules/configuring-the-quickstarts/proc-disabling-rhdh-quickstart.adoc[leveloffset=+2]
12+
1113
include::modules/configuring-the-quickstarts/proc-starting-and-completing-modules-in-quickstarts.adoc[leveloffset=+1]

assemblies/assembly-customizing-the-appearance.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
[id="{context}"]
55
= Customizing {product} appearance
66

7+
By modifying the visual aspects of the interface, organizations can align {product} with their branding guidelines and improve the overall user experience.
8+
79
The following default theme configurations are available for {product}:
810

911
The {product} theme:: Default theme configurations to make your developer portal look like a standard {product} instance. For more information, see xref:ref-customize-rhdh-default-rhdh_{context}[]
1012

1113
The Backstage theme:: Default theme configurations to make your developer portal look like a standard Backstage instance. For more information, see xref:ref-customize-rhdh-default-backstage_{context}[]
1214

13-
You can change or disable particular parameters in a default theme or create a fully customized theme by modifying the `app-config-rhdh.yaml` file. From the `app-config-rhdh.yaml` file, you can customize common theme components, including the following:
15+
You can change or disable particular parameters in a default theme or create a fully customized theme by modifying the `app-config-rhdh.yaml` file. From the `app-config-rhdh.yaml` file, you can customize common theme components, including the following components:
1416

1517
* Company name and logo
1618
* Font color, size, and style of text in paragraphs, headings, headers, and buttons
@@ -25,7 +27,7 @@ include::modules/customizing-the-appearance/proc-customize-rhdh-theme-mode.adoc[
2527
include::modules/customizing-the-appearance/proc-customize-rhdh-branding-logo.adoc[leveloffset=+1]
2628

2729

28-
include::modules/customizing-the-appearance/con-customize-rhdh-sidebar-menuitems.adoc[leveloffset=+1]
30+
include::modules/customizing-the-appearance/con-about-rhdh-sidebar-menuitems.adoc[leveloffset=+1]
2931

3032
include::modules/customizing-the-appearance/proc-customize-rhdh-sidebar-menuitems.adoc[leveloffset=+2]
3133

modules/configuring-a-floating-action-button/proc-configuring-floating-action-button-as-a-dynamic-plugin.adoc

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ To configure a floating action button as a dynamic plugin, complete any of the f
1414

1515
* Specify the `global.floatingactionbutton/config` mount point in your `app-config-dynamic.yaml` file. For example:
1616
+
17-
.Example of a bulk-import plugin as a floating action button
1817
[source,yaml]
1918
----
2019
- package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-bulk-import
@@ -26,10 +25,10 @@ To configure a floating action button as a dynamic plugin, complete any of the f
2625
# Start of the floating action button configuration
2726
mountPoints:
2827
- mountPoint: global.floatingactionbutton/config
29-
importName: BulkImportPage # <1>
28+
importName: BulkImportPage
3029
config:
3130
slot: 'page-end'
32-
icon: <svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#e8eaed"><g><rect fill="none" height="24" width="24"/></g><g><path d="M11,7L9.6,8.4l2.6,2.6H2v2h10.2l-2.6,2.6L11,17l5-5L11,7z M20,19h-8v2h8c1.1,0,2-0.9,2-2V5c0-1.1-0.9-2-2-2h-8v2h8V19z"/></g></svg> # <2>
31+
icon: <svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#e8eaed"><g><rect fill="none" height="24" width="24"/></g><g><path d="M11,7L9.6,8.4l2.6,2.6H2v2h10.2l-2.6,2.6L11,17l5-5L11,7z M20,19h-8v2h8c1.1,0,2-0.9,2-2V5c0-1.1-0.9-2-2-2h-8v2h8V19z"/></g></svg>
3332
label: 'Bulk import'
3433
toolTip: 'Register multiple repositories in bulk'
3534
to: /bulk-import/repositories
@@ -44,12 +43,11 @@ To configure a floating action button as a dynamic plugin, complete any of the f
4443
icon: bulkImportIcon
4544
text: Bulk import
4645
----
47-
<1> (Required) The import name with an associated component to the mount point.
48-
<2> Use the `svg` value to display a black BulkImportPage icon.
46+
`frontend:mountPoints:importName`:: (Required) The import name with an associated component to the mount point.
47+
`frontend:mountPoints:importName:icon`:: Use the `svg` value to display a black `BulkImportPage` icon.
4948

5049
* To configure an action as a floating action button that opens an external link, specify the `global.floatingactionbutton/config` mount point in your `dynamic-plugins.yaml` file within the `backstage-plugin-global-floating-action-button` plugin. For example:
5150
+
52-
.Example of a floating action button that opens GitHub
5351
[source,yaml]
5452
----
5553
- package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-global-floating-action-button
@@ -62,9 +60,9 @@ To configure a floating action button as a dynamic plugin, complete any of the f
6260
- mountPoint: application/listener
6361
importName: DynamicGlobalFloatingActionButton
6462
- mountPoint: global.floatingactionbutton/config
65-
importName: NullComponent # <1>
63+
importName: NullComponent
6664
config:
67-
icon: '<svg viewBox="0 0 250 300" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid"><path d="M200.134 0l55.555 117.514-55.555 117.518h-47.295l55.555-117.518L152.84 0h47.295zM110.08 99.836l20.056-38.092-2.29-8.868L102.847 0H55.552l48.647 102.898 5.881-3.062zm17.766 74.433l-17.333-39.034-6.314-3.101-48.647 102.898h47.295l25-52.88v-7.883z" fill="#40B4E5"/><path d="M152.842 235.032L97.287 117.514 152.842 0h47.295l-55.555 117.514 55.555 117.518h-47.295zm-97.287 0L0 117.514 55.555 0h47.296L47.295 117.514l55.556 117.518H55.555z" fill="#003764"/></svg>' # <2>
65+
icon: '<svg viewBox="0 0 250 300" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid"><path d="M200.134 0l55.555 117.514-55.555 117.518h-47.295l55.555-117.518L152.84 0h47.295zM110.08 99.836l20.056-38.092-2.29-8.868L102.847 0H55.552l48.647 102.898 5.881-3.062zm17.766 74.433l-17.333-39.034-6.314-3.101-48.647 102.898h47.295l25-52.88v-7.883z" fill="#40B4E5"/><path d="M152.842 235.032L97.287 117.514 152.842 0h47.295l-55.555 117.514 55.555 117.518h-47.295zm-97.287 0L0 117.514 55.555 0h47.296L47.295 117.514l55.556 117.518H55.555z" fill="#003764"/></svg>'
6866
label: 'Quay'
6967
showLabel: true
7068
toolTip: 'Quay'
@@ -77,12 +75,11 @@ To configure a floating action button as a dynamic plugin, complete any of the f
7775
toolTip: 'Github'
7876
to: https://github.com/redhat-developer/rhdh-plugins
7977
----
80-
<1> (Required) The import name with an associated component to the mount point.
81-
<2> Use the `svg` value to display the `Quay` icon.
78+
`frontend:mountPoints:importName`:: Enter the import name with an associated component to the mount point.
79+
`frontend:mountPoints:importName:icon`:: (Optional) Enter the icon in Scalable Vector Graphics (SVG) format to display the `Quay` icon.
8280

8381
* To configure a floating action button that contains a submenu, define the `global.floatingactionbutton/config` mount point in the same `slot` field in your `dynamic-plugins.yaml` file for multiple actions. The default slot is `page-end` when not specified. For example:
8482
+
85-
.Example of a floating action button with submenu actions
8683
[source,yaml]
8784
----
8885
- package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-bulk-import
@@ -94,7 +91,7 @@ To configure a floating action button as a dynamic plugin, complete any of the f
9491
# Start of fab config
9592
mountPoints:
9693
- mountPoint: global.floatingactionbutton/config
97-
importName: BulkImportPage # <1>
94+
importName: BulkImportPage
9895
config:
9996
slot: 'page-end'
10097
icon: <svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#e8eaed"><g><rect fill="none" height="24" width="24"/></g><g><path d="M11,7L9.6,8.4l2.6,2.6H2v2h10.2l-2.6,2.6L11,17l5-5L11,7z M20,19h-8v2h8c1.1,0,2-0.9,2-2V5c0-1.1-0.9-2-2-2h-8v2h8V19z"/></g></svg>
@@ -122,26 +119,25 @@ To configure a floating action button as a dynamic plugin, complete any of the f
122119
- mountPoint: application/listener
123120
importName: DynamicGlobalFloatingActionButton
124121
- mountPoint: global.floatingactionbutton/config
125-
importName: NullComponent # <1>
122+
importName: NullComponent
126123
config:
127124
icon: github
128125
label: 'Git'
129126
toolTip: 'Github'
130127
to: https://github.com/redhat-developer/rhdh-plugins
131128
- mountPoint: global.floatingactionbutton/config
132-
importName: NullComponent # <1>
129+
importName: NullComponent
133130
config:
134131
icon: '<svg viewBox="0 0 250 300" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid"><path d="M200.134 0l55.555 117.514-55.555 117.518h-47.295l55.555-117.518L152.84 0h47.295zM110.08 99.836l20.056-38.092-2.29-8.868L102.847 0H55.552l48.647 102.898 5.881-3.062zm17.766 74.433l-17.333-39.034-6.314-3.101-48.647 102.898h47.295l25-52.88v-7.883z" fill="#40B4E5"/><path d="M152.842 235.032L97.287 117.514 152.842 0h47.295l-55.555 117.514 55.555 117.518h-47.295zm-97.287 0L0 117.514 55.555 0h47.296L47.295 117.514l55.556 117.518H55.555z" fill="#003764"/></svg>'
135132
label: 'Quay'
136133
showLabel: true
137134
toolTip: 'Quay'
138135
to: 'https://quay.io'
139136
----
140-
<1> (Required) The import name with an associated component to the mount point.
137+
`frontend:mountPoints:importName`:: (Required) The import name with an associated component to the mount point.
141138

142139
* To configure a floating action button to display only on specific pages, configure the `global.floatingactionbutton/config` mount point in the `backstage-plugin-global-floating-action-button` plugin and set the `visibleOnPaths` property as shown in the following example:
143140
+
144-
.Example of a floating action button to display specific pages
145141
[source,yaml]
146142
----
147143
- package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-bulk-import
@@ -172,11 +168,10 @@ To configure a floating action button as a dynamic plugin, complete any of the f
172168
icon: bulkImportIcon
173169
text: Bulk import
174170
----
175-
<1> (Required) The import name with an associated component to the mount point.
171+
`frontend:mountPoints:importName`:: Enter the import name with an associated component to the mount point.
176172

177173
* To hide a floating action button on specific pages, configure the `global.floatingactionbutton/config` mount point in the `backstage-plugin-global-floating-action-button` plugin and set the `excludeOnPaths` property as shown in the following example:
178174
+
179-
.Example of a floating action button to hide specific pages
180175
[source,yaml]
181176
----
182177
- package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-bulk-import
@@ -207,4 +202,4 @@ To configure a floating action button as a dynamic plugin, complete any of the f
207202
icon: bulkImportIcon
208203
text: Bulk import
209204
----
210-
<1> (Required) The import name with an associated component to the mount point.
205+
`frontend:mountPoints:importName`:: Enter the import name with an associated component to the mount point.

modules/configuring-the-global-header/con-quicklinks-and-starred-items-in-global-header.adoc

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ The *Quicklinks* matrix, organized by sections (for example, Documentation or De
99

1010
The default configuration includes the following components:
1111

12-
*StarredDropdown*: Displays the *Starred Items* menu in the global header by default, as shown in the following configuration:
13-
12+
`StarredDropdown`:: Display the *Starred Items* menu in the global header by default, as shown in the following configuration:
13+
+
1414
[source,yaml]
1515
----
1616
# Group: Global Header
@@ -21,8 +21,8 @@ The default configuration includes the following components:
2121
priority: 85
2222
----
2323

24-
*ApplicationLauncherDropdown*: Provides the *Quicklinks* matrix (application launcher) by default, as shown in the following configuration:
25-
24+
`ApplicationLauncherDropdown`:: Provide the *Quicklinks* matrix (application launcher) by default, as shown in the following configuration:
25+
+
2626
[source,yaml]
2727
----
2828
# Group: Global Header
@@ -33,8 +33,8 @@ The default configuration includes the following components:
3333
priority: 82
3434
----
3535

36-
*MenuItemLink entries*: Define sections, titles, icons, and links within the *Quicklinks* matrix. The default configuration includes links to the {product-short} documentation and an {product-very-short} Local, as shown in the following configurations:
37-
36+
`MenuItemLink entries`:: Define sections, titles, icons, and links within the *Quicklinks* matrix. The default configuration includes links to the {product-short} documentation and an {product-very-short} Local, as shown in the following configurations:
37+
+
3838
[source,yaml,subs="+attributes"]
3939
----
4040
- mountPoint: global.header/application-launcher
@@ -61,8 +61,4 @@ The default configuration includes the following components:
6161
[NOTE]
6262
====
6363
When upgrading from previous versions, the installer does not overwrite your existing `dynamic-plugins.yaml` configuration. If you had not configured *Starred Items* or *Quicklinks* previously, they remain disabled after the upgrade and must be manually enabled.
64-
====
65-
66-
67-
68-
64+
====

modules/configuring-the-global-header/proc-configuring-logo-in-the-global-header.adoc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@ This component supports the following props, which are provided through configur
1010
* `logo`: The base64 encoded logo image.
1111
* `to`: The redirect path for when users click the logo is '/catalog'.
1212
* `width`: The logo width is optional and defaults to 150 px.
13-
* `height`: The logo height is optional and defaults to 40px.
13+
* `height`: The logo height is optional and defaults to 40 px.
1414

1515
.Procedure
1616

1717
. To display a custom company logo in the global header, update the configuration with a mount point for `CompanyLogo`:
1818
+
19-
.Example: Configuring company logo
20-
+
2119
[source,yaml,subs="+attributes,+quotes"]
2220
----
2321
# ...rest of the global header configuration
@@ -50,8 +48,6 @@ red-hat-developer-hub.backstage-plugin-global-header:
5048

5149
. (Optional) If you do not provide `logo` props to the `CompanyLogo` component, the component instead uses values defined under `app.branding` in your `{my-app-config-file}` file. You can configure the `CompanyLogo` as shown in the following configuration:
5250
+
53-
.Example: Fallback configuration
54-
+
5551
[source,yaml,subs="+attributes,+quotes"]
5652
----
5753
app:

modules/configuring-the-global-header/proc-customize-rhdh-global-header.adoc

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,18 @@
66
You can use the `red-hat-developer-hub.backstage-plugin-global-header` dynamic plugin to extend the global header with additional buttons and customize the order and position of icons and features. Additionally, you can create and integrate your custom dynamic header plugins using the mount points provided by this new header feature, allowing you to further tailor to suit your needs.
77
For more information about enabling dynamic plugins, see {installing-and-viewing-plugins-book-link}[{installing-and-viewing-plugins-book-title}].
88

9-
.Default global header configuration
10-
119
[source,yaml,subs="+attributes,+quotes"]
1210
----
1311
- package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-global-header
1412
disabled: false
1513
pluginConfig:
1614
app:
1715
sidebar:
18-
search: false <1>
19-
settings: false <2>
16+
search: false
17+
settings: false
2018
dynamicPlugins:
2119
frontend:
22-
default.main-menu-items: <3>
20+
default.main-menu-items:
2321
menuItems:
2422
default.create:
2523
title: ''
@@ -76,12 +74,22 @@ For more information about enabling dynamic plugins, see {installing-and-viewing
7674
config:
7775
priority: 10
7876
----
79-
<1> *search*: Hides the *Search* modal in the sidebar menu. Change it to `true` to display the *Search* modal in the sidebar.
80-
<2> *settings*: Hides the *Settings* button in the sidebar menu. Change it to `true` to display the *Settings* button in the sidebar.
81-
<3> `default.main-menu-items`: Hides the *Self-service* button from the sidebar menu. Remove this field to display the *Self-service* button in the sidebar.
82-
<4> *position*: Defines the position of the header. Options: `above-main-content` or `above-sidebar`.
77+
where:
78+
79+
`search`::
80+
Enter `false` to hide the *Search* modal in the sidebar menu.
81+
Enter `true` to display the *Search* modal in the sidebar menu.
82+
`settings`::
83+
Enter `false` to hides the *Settings* button in the sidebar menu.
84+
Enter `true` to display the *Settings* button in the sidebar menu.
85+
`default.main-menu-items`::
86+
Enter this field to hide the *Self-service* button from the sidebar menu.
87+
Remove this field to display the *Self-service* button in the sidebar menu.
88+
`position`::
89+
Enter `above-main-content` to position the header above the main content.
90+
Enter `above-sidebar` to position the header above the sidebar.
8391

84-
To extend the functionality of the default global header, include any the following attributes in your global header entry:
92+
To extend the functionality of the default global header, include any of the following attributes in your global header entry:
8593

8694
`mountPoint`::
8795
Specifies the location of the header. Use `application/header` to specify it as a global header. You can configure several global headers at different positions by adding entries to the `mountPoints` field.

modules/configuring-the-global-header/proc-displaying-preferred-username-in-profile-drop-down.adoc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
You can display the preferred username in the global header profile drop-down list by configuring `spec.profile.displayName` in the user entity. When not configured, the application falls back to a `metadata.title`. If neither is configured, it defaults to a user-friendly name generated by the `useProfileInfo` hook.
77

88
.Procedure
9-
.Example when you configure `spec.profile.displayName`
109

10+
. To configure `spec.profile.displayName`, use the following code:
11+
+
1112
[source,yaml,subs="+attributes,+quotes"]
1213
----
1314
apiVersion: backstage.io/v1alpha1
@@ -24,8 +25,8 @@ spec:
2425
memberOf: [janus-authors]
2526
----
2627

27-
.Example when you do not configure `spec.profile.displayname` but configure `metadata.title`
28-
28+
. To configure `metadata.title` rather than `spec.profile.displayname`, use the following code:
29+
+
2930
[source,yaml,subs="+attributes,+quotes"]
3031
----
3132
apiVersion: backstage.io/v1alpha1
@@ -39,8 +40,8 @@ spec:
3940
memberOf: [janus-authors]
4041
----
4142

42-
.Example when you do not configure the `spec.profile.displayname` and the `metadata.title`
43-
43+
. To configure neither `spec.profile.displayname` or `metadata.title`, use the following code:
44+
+
4445
[source,yaml,subs="+attributes,+quotes"]
4546
----
4647
apiVersion: backstage.io/v1alpha1

modules/configuring-the-global-header/proc-enabling-logo-in-the-sidebar.adoc

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ You can configure a logo in the sidebar of the {product} ({product-very-short}).
77

88
.Procedure
99

10-
. To display the logo in the sidebar, set the value of the `app.sidebar.logo` parameter to `true` as shown in the following example:
11-
+
12-
.Example: Enabling the logo in only the sidebar
10+
. To display the logo exclusively in the sidebar, set the value of the `app.sidebar.logo` parameter to `true` as shown in the following example:
1311
+
1412
[source,yaml,subs="+attributes,+quotes"]
1513
----
@@ -25,8 +23,6 @@ To display the logo in only the sidebar, remove the `CompanyLogo` component from
2523

2624
. To display the same logo in the sidebar for all themes, update the configuration as shown in the following configuration:
2725
+
28-
.Example: Configuring sidebar logo for all themes
29-
+
3026
[source,yaml,subs="+attributes,+quotes"]
3127
----
3228
app:
@@ -39,8 +35,6 @@ app:
3935

4036
. For theme-specific logos, you can configure the sidebar logo as shown in the following configuration:
4137
+
42-
.Example: Theme-specific logos
43-
+
4438
[source,yaml,subs="+attributes,+quotes"]
4539
----
4640
app:
@@ -55,4 +49,4 @@ app:
5549

5650
.Verification
5751
. The logo appears correctly in the sidebar.
58-
. Toggle between `light` and `dark` themes to ensure the correct logo loads in each.
52+
. Toggle between `light` and `dark` themes to ensure the correct logo loads in each.

0 commit comments

Comments
 (0)