Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 12. Customizing the Home page
When using the app-config
, you can do the following:
- Customize and extend the default Home page layout with additional cards that appear based on the plugins you have installed and enabled.
- Change quick access links.
Add, reorganize, and remove the following available cards:
- Search bar
- Quick access
- Headline
- Markdown
- Placeholder
- Catalog starred entities
- Featured docs
12.1. Customizing the Home page cards Link kopierenLink in die Zwischenablage kopiert!
Administrators can change the fixed height of cards that are in a 12-column grid.
The default Home page is as shown in the following app-config.yaml
file configuration:
Prerequisites
-
You have administrative access and can modify the
app-config.yaml
file for dynamic plugin configurations.
Procedure
Configure different cards for your Home page in Red Hat Developer Hub as shown in the following code:
- Search
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Expand Table 12.1. Available props Prop Default Description path
/search
Override the linked search path if needed
queryParam
query
Override the search query parameter name if needed
- Quick access
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Expand Table 12.2. Available props Prop Default Description title
Quick Access
Override the linked search path if needed
path
none
Override the search query parameter name if needed
- Headline
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Expand Table 12.3. Available props Prop Default Description title
none
Title
- Markdown
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Placeholder
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Catalog starred entities
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Featured docs
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - EntitySection
- You can use the EntitySection card to create a visually engaging section that highlights catalog entities of various kinds, such as components, APIs, resources, and so on.
- OnboardingSection
- You can use the OnboardingSection card to quickly discover learning resources within RHDH.
- TemplateSection
- You can use the TemplateSection card to quickly explore and initiate software templates in RHDH.
12.2. Defining the layout of the Red Hat Developer Hub Home page Link kopierenLink in die Zwischenablage kopiert!
The Home page uses a 12-column grid to position your cards. You can use the optimal parameters to define the layout of your Developer Hub Home page.
Prerequisites
Include the following optimal parameters in each of your breakpoints:
- width (w)
- height (h)
- position (x and y)
Procedure
Configure your Developer Hub
app-config.yaml
configuration file by choosing one of the following options:- Use the full space on smaller windows and half of the space on larger windows as follows:
-
Show the cards side by side by defining the
x
parameter as shown in the following example:
However, you can see a second card below this card by default.
-
Show the cards in three columns by defining the
x
parameter as shown in the following example: