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: modules/customizing-the-appearance/proc-customize-rhdh-sidebar-menuitems.adoc
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,12 +9,12 @@ The sidebar menu in {product} consists of two main parts:
9
9
10
10
.Procedure
11
11
12
-
. Customize the main menu items using the following steps:
12
+
Customize the main menu items using the following steps:
13
13
+
14
14
--
15
-
.. Open the `app-config-rhdh.yaml` file.
16
-
.. To customize the order and parent-child relationships for the main menu items, use the `dynamicPlugins.frontend.default.main-menu-items.menuItems` field.
17
-
.. For dynamic plugin menu items, use the `dynamicPlugins.frontend.<package_name>.menuItems` field.
15
+
. Open the `app-config-rhdh.yaml` file.
16
+
. To customize the order and parent-child relationships for the main menu items, use the `dynamicPlugins.frontend.default.main-menu-items.menuItems` field.
17
+
. For dynamic plugin menu items, use the `dynamicPlugins.frontend.<package_name>.menuItems` field.
Copy file name to clipboardExpand all lines: modules/customizing-the-quick-access-card/proc-using-a-dedicated-service-to-provide-data-to-the-quick-access-card.adoc
= Using a dedicated service to provide data to the Quick access card
8
8
9
-
When using a dedicated service, you can do the following:
9
+
When using a dedicated service, you can do the following tasks:
10
10
11
11
* Use the same service to provide the data to all configurable {product-short} pages or use a different service for each page.
12
12
* Use the https://github.com/redhat-developer/red-hat-developer-hub-customization-provider[`red-hat-developer-hub-customization-provider`] as an example service, which provides data for both the Home and Tech Radar pages. The `red-hat-developer-hub-customization-provider` service provides the same data as default {product-short} data. You can fork the `red-hat-developer-hub-customization-provider` service repository from GitHub and modify it with your own data, if required.
13
13
* Deploy the `red-hat-developer-hub-customization-provider` service and the {product-short} Helm chart on the same cluster.
14
14
15
15
.Prerequisites
16
16
17
-
* You have installed the {product} using Helm Chart.
17
+
* You have installed the {product} using Helm chart.
18
18
For more information, see xref:{installing-on-ocp-book-url}#assembly-install-rhdh-ocp-helm[{installing-on-ocp-book-title} with the Helm chart].
19
19
20
20
.Procedure
@@ -28,12 +28,12 @@ To use a separate service to provide the Home page data, complete the following
28
28
To use the `red-hat-developer-hub-customization-provider` service, add the URL for the https://github.com/redhat-developer/red-hat-developer-hub-customization-provider[red-hat-developer-hub-customization-provider] repository or your fork of the repository containing your customizations.
29
29
--
30
30
31
-
. On the *General* tab, enter *red-hat-developer-hub-customization-provider* in the *Name* field and click *Create*.
32
-
. On the *Advanced Options* tab, copy the value from the *Target Port*.
31
+
. On the *General* tab, enter `red-hat-developer-hub-customization-provider` in the *Name* field and click *Create*.
32
+
. On the *Advanced Options* tab, copy the value from *Target Port*.
33
33
+
34
34
[NOTE]
35
35
====
36
-
The *Target Port* automatically generates a Kubernetes or {ocp-short} service to communicate with.
36
+
*Target Port* automatically generates a Kubernetes or {ocp-short} service to communicate with.
37
37
====
38
38
+
39
39
. Add the following code to the `app-config-rhdh.yaml` file:
@@ -45,12 +45,12 @@ proxy:
45
45
# Other Proxies
46
46
# customize developer hub instance
47
47
'/developer-hub':
48
-
target: ${HOMEPAGE_DATA_URL}
48
+
target: ${HOMEPAGE_DATA_URL} <1>
49
49
changeOrigin: true
50
50
# Change to "false" in case of using self-hosted cluster with a self-signed certificate
51
51
secure: true
52
52
----
53
-
where `HOMEPAGE_DATA_URL` is defined as `pass:c[http://<SERVICE_NAME>:8080]`, for example, `pass:c[http://rhdh-customization-provider:8080]`.
53
+
<1> `pass:c[http://<SERVICE_NAME>:8080]`, for example, `pass:c[http://rhdh-customization-provider:8080]`.
54
54
+
55
55
[NOTE]
56
56
====
@@ -62,11 +62,11 @@ The `red-hat-developer-hub-customization-provider` service contains the 8080 por
62
62
. Delete the {product-short} pod to ensure that the new configurations are loaded correctly.
63
63
64
64
.Verification
65
-
* To view the service, navigate to the *Administrator* perspective in the {ocp-short} web console and click *Networking* > *Service*.
65
+
* To view the service, go to the *Administrator* perspective in the {ocp-short} web console and click *Networking* > *Service*.
66
66
+
67
67
[NOTE]
68
68
====
69
-
You can also view the *Service Resources* in the Topology view.
69
+
You can also view *Service Resources* in the Topology view.
70
70
====
71
71
72
72
* Ensure that the provided API URL for the Home page returns the data in JSON format as shown in the following example:
@@ -109,7 +109,7 @@ You can also view the *Service Resources* in the Topology view.
109
109
If the request call fails or is not configured, the {product-short} instance falls back to the default local data.
110
110
====
111
111
112
-
* If the images or icons do not load, then allowlist them by adding your image or icon host URLs to the content security policy’s (csp) `img-src` in your custom ConfigMap as follows:
112
+
* If the images or icons do not load, then allowlist them by adding your image or icon host URLs to the content security policy (csp) `img-src` in your custom ConfigMap as shown in the following example:
Copy file name to clipboardExpand all lines: modules/customizing-the-quick-access-card/proc-using-hosted-json-files-to-provide-data-to-the-quick-access-card.adoc
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,6 @@ See xref:{installing-on-ocp-book-url}#assembly-install-rhdh-ocp[{installing-on-o
14
14
.Procedure
15
15
16
16
* To access the data from the JSON files, add the following code to the {product-short} `app-config.yaml` configuration file:
17
-
18
-
* Add the following code to the `app-config.yaml` file:
0 commit comments