Skip to content

Commit 83749be

Browse files
committed
Modifies the customizing Home page
1 parent ce322be commit 83749be

File tree

1 file changed

+50
-38
lines changed

1 file changed

+50
-38
lines changed

modules/getting-started/proc-customize-rhdh-homepage.adoc

Lines changed: 50 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ When using the `app-config`, you can do the following:
1515
** Catalog starred entities
1616
** Featured docs
1717

18+
== Customizing the Home page cards
19+
20+
Administrators can change the fixed height of cards that are in a 12-column grid.
21+
1822
The default Home page is as shown in the following `app-config` file configuration:
1923

2024
[source,yaml]
@@ -58,11 +62,6 @@ dynamicPlugins:
5862
xxs: { w: 12, h: 4 }
5963
----
6064

61-
62-
== Customizing the Home page cards
63-
64-
Administrators can change the fixed height of cards that are in a 12-column grid.
65-
6665
=== Example card configurations for your Home page in {product}
6766

6867
You can configure different cards for your Home page in {product}, as follows:
@@ -183,15 +182,41 @@ dynamicPlugins:
183182
janus-idp.backstage-plugin-dynamic-home-page:
184183
mountPoints:
185184
- mountPoint: home.page/cards
186-
importName: SearchBar
185+
importName: MarkdownCard
187186
config:
188187
layouts:
189-
xl: { w: 10, h: 1, x: 1 }
190-
lg: { w: 10, h: 1, x: 1 }
191-
md: { w: 10, h: 1, x: 1 }
192-
sm: { w: 10, h: 1, x: 1 }
193-
xs: { w: 12, h: 1 }
194-
xxs: { w: 12, h: 1 }
188+
xl: { w: 6, h: 4 }
189+
lg: { w: 6, h: 4 }
190+
md: { w: 6, h: 4 }
191+
sm: { w: 6, h: 4 }
192+
xs: { w: 6, h: 4 }
193+
xxs: { w: 6, h: 4 }
194+
props:
195+
title: Company links
196+
content: |
197+
### RHDH
198+
* [Website](https://developers.redhat.com/rhdh/overview)
199+
* [Documentation](https://docs.redhat.com/en/documentation/red_hat_developer_hub/)
200+
* [GitHub Showcase](https://github.com/janus-idp/backstage-showcase)
201+
* [GitHub Plugins](https://github.com/janus-idp/backstage-plugins)
202+
- mountPoint: home.page/cards
203+
importName: Markdown
204+
config:
205+
layouts:
206+
xl: { w: 6, h: 4, x: 6 }
207+
lg: { w: 6, h: 4, x: 6 }
208+
md: { w: 6, h: 4, x: 6 }
209+
sm: { w: 6, h: 4, x: 6 }
210+
xs: { w: 6, h: 4, x: 6 }
211+
xxs: { w: 6, h: 4, x: 6 }
212+
props:
213+
title: Important company links
214+
content: |
215+
### RHDH
216+
* [Website](https://developers.redhat.com/rhdh/overview)
217+
* [Documentation](https://docs.redhat.com/en/documentation/red_hat_developer_hub/)
218+
* [GitHub Showcase](https://github.com/janus-idp/backstage-showcase)
219+
* [GitHub Plugins](https://github.com/janus-idp/backstage-plugins)
195220
----
196221
--
197222

@@ -205,15 +230,18 @@ dynamicPlugins:
205230
janus-idp.backstage-plugin-dynamic-home-page:
206231
mountPoints:
207232
- mountPoint: home.page/cards
208-
importName: SearchBar
233+
importName: Placeholder
209234
config:
210235
layouts:
211-
xl: { w: 10, h: 1, x: 1 }
212-
lg: { w: 10, h: 1, x: 1 }
213-
md: { w: 10, h: 1, x: 1 }
214-
sm: { w: 10, h: 1, x: 1 }
215-
xs: { w: 12, h: 1 }
216-
xxs: { w: 12, h: 1 }
236+
xl: { w: 1, h: 1 }
237+
lg: { w: 1, h: 1 }
238+
md: { w: 1, h: 1 }
239+
sm: { w: 1, h: 1 }
240+
xs: { w: 1, h: 1 }
241+
xxs: { w: 1, h: 1 }
242+
props:
243+
showBorder: true
244+
debugContent: '1'
217245
----
218246
--
219247

@@ -227,15 +255,7 @@ dynamicPlugins:
227255
janus-idp.backstage-plugin-dynamic-home-page:
228256
mountPoints:
229257
- mountPoint: home.page/cards
230-
importName: SearchBar
231-
config:
232-
layouts:
233-
xl: { w: 10, h: 1, x: 1 }
234-
lg: { w: 10, h: 1, x: 1 }
235-
md: { w: 10, h: 1, x: 1 }
236-
sm: { w: 10, h: 1, x: 1 }
237-
xs: { w: 12, h: 1 }
238-
xxs: { w: 12, h: 1 }
258+
importName: CatalogStarredEntitiesCard
239259
----
240260
--
241261

@@ -249,15 +269,7 @@ dynamicPlugins:
249269
janus-idp.backstage-plugin-dynamic-home-page:
250270
mountPoints:
251271
- mountPoint: home.page/cards
252-
importName: SearchBar
253-
config:
254-
layouts:
255-
xl: { w: 10, h: 1, x: 1 }
256-
lg: { w: 10, h: 1, x: 1 }
257-
md: { w: 10, h: 1, x: 1 }
258-
sm: { w: 10, h: 1, x: 1 }
259-
xs: { w: 12, h: 1 }
260-
xxs: { w: 12, h: 1 }
272+
importName: FeaturedDocsCard
261273
----
262274
--
263275

@@ -421,7 +433,7 @@ proxy:
421433
----
422434

423435

424-
=== Using a dedicated service to provide data to the Home page
436+
=== Using a dedicated service to provide data to the Quick access card
425437

426438
When using a dedicated service, you can do the following:
427439

0 commit comments

Comments
 (0)