Skip to content

Commit 5bc6b3c

Browse files
author
GitHub Actions
committed
Update the doc on changing RHDH logo
Update the doc on changing RHDH logo
1 parent c87a8b1 commit 5bc6b3c

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

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

Lines changed: 17 additions & 2 deletions
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,21 @@ 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:image/svg+xml;base64,<file_base64>"
28+
----
29+
+
30+
The following example demonstrates how to customize the `BASE64_EMBEDDED_FULL_LOGO` using the `data:image/svg+xml;base64,<file_base64>` 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+
----
2237

2338
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:
2439

0 commit comments

Comments
 (0)