Skip to content

Commit 0ca9df1

Browse files
jmagakGitHub Actions
and
GitHub Actions
authored
RHIDP-3504: Update the doc on changing RHDH logo (redhat-developer#1033)
* Update the doc on changing RHDH logo Update the doc on changing RHDH logo * Update the doc on changing RHDH logo * Update the doc on changing RHDH logo * Update the doc on changing RHDH logo --------- Co-authored-by: GitHub Actions <[email protected]>
1 parent f06ebe6 commit 0ca9df1

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

modules/customizing-the-appearance/proc-customize-rhdh-branding-logo.adoc

+18-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
[id="proc-customize-rhdh-branding-logo_{context}"]
66
= Customizing the branding logo of your {product-short} instance
77

8-
You can customize the branding logo of your {product-short} instance by configuring the `branding` section the `{my-app-config-file}` file, as shown in the following example:
8+
You can customize the branding logo of your {product-short} instance by configuring the `branding` section in the `{my-app-config-file}` file, as shown in the following example:
99

10-
[source,yaml]
10+
[source,yaml,subs="+quotes"]
1111
----
1212
app:
1313
branding:
@@ -19,6 +19,22 @@ where:
1919

2020
<1> `fullLogo` is the logo on the expanded (pinned) sidebar and expects a base64 encoded image.
2121
<2> `iconLogo` is the logo on the collapsed (unpinned) sidebar and expects a base64 encoded image.
22+
+
23+
You can format the `BASE64_EMBEDDED_FULL_LOGO` environment variable as follows:
24+
+
25+
[source,yaml,subs="+quotes"]
26+
----
27+
BASE64_EMBEDDED_FULL_LOGO: "data:_<media_type>_;base64,_<base64_data>_"
28+
----
29+
+
30+
The following example demonstrates how to customize the `BASE64_EMBEDDED_FULL_LOGO` using the `data:_<media_type>_;base64,_<base64_data>_` format:
31+
+
32+
[source,yaml,subs="+quotes"]
33+
----
34+
SVGLOGOBASE64=$(base64 -i logo.svg)
35+
BASE64_EMBEDDED_FULL_LOGO="data:image/svg+xml;base64,$SVGLOGOBASE64"
36+
----
37+
Replace `image/svg+xml` with the correct media type for your image (for example, `image/png` and `image/jpeg`), and adjust the file extension accordingly. As a result, you can embed the logo directly without referencing an external file.
2238

2339
You can also customize the width of the branding logo by setting a value for the `fullLogoWidth` field in the `branding` section, as shown in the following example:
2440

0 commit comments

Comments
 (0)