generated from redhat-developer/new-project-template
-
Notifications
You must be signed in to change notification settings - Fork 57
Rhidp 3835 home page document how users can customize the home page #529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Gerry-Forde
merged 14 commits into
redhat-developer:main
from
jmagak:RHIDP-3835-Home-Page-Document-how-users-can-customize-the-Home-page
Nov 13, 2024
Merged
Changes from 12 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
2489c35
Modifies the customizing home page
jmagak d93cd3f
Modifies the customizing home page
jmagak 8d90950
Modifies the customizing home page
jmagak 963d083
Modify the customization home page
jmagak 0d3779d
Modifies the Customizing Home Page
jmagak 741a811
Modifies the Customizing Home Page
jmagak 3c2ad0b
Modifies the customizing Home page
jmagak c713dad
Modifies the customizing Home page
jmagak ce322be
Modifies the customizing Home page
jmagak 83749be
Modifies the customizing Home page
jmagak b661905
Merge branch 'main' into RHIDP-3835-Home-Page-Document-how-users-can-…
jmagak 4a64d4a
Updates the customizing rhdh homepage
jmagak 4bc13f9
Updates the customizing rhdh homepage
jmagak 4a1f6c8
Merge branch 'main' into RHIDP-3835-Home-Page-Document-how-users-can-…
jmagak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
assemblies/assembly-customizing-the-quick-access-card-in-rhdh.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| :_newdoc-version: 2.18.3 | ||
| :_template-generated: 2024-11-13 | ||
|
|
||
| ifdef::context[:parent-context-of-customizing-the-quick-access-card-in-rhdh: {context}] | ||
|
|
||
| :_mod-docs-content-type: ASSEMBLY | ||
|
|
||
| ifndef::context[] | ||
| [id="customizing-the-quick-access-card-in-rhdh"] | ||
| endif::[] | ||
| ifdef::context[] | ||
| [id="customizing-the-quick-access-card-in-rhdh_{context}"] | ||
| endif::[] | ||
| = Customizing the Quick access card in {product} | ||
|
|
||
| To access the Home page in {product}, the base URL must include the `/developer-hub` proxy. You can configure the Home page by passing the data into the `app-config.yaml` file as a proxy. You can provide data to the Home page from the following sources: | ||
|
|
||
| * JSON files hosted on GitHub or GitLab. | ||
| * A dedicated service that provides the Home page data in JSON format using an API. | ||
| include::modules/getting-started/proc-using-hosted-json-files-to-provide-data-to-the-quick-access-card.adoc[leveloffset=+1] | ||
| include::modules/getting-started/proc-using-a-dedicated-service-to-provide-data-to-the-quick-access-card.adoc[leveloffset=+1] | ||
|
|
||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| [id='proc-customize-rhdh-homepage_{context}'] | ||
| = Customizing the Home page in {product} | ||
|
|
||
| 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 | ||
|
|
||
| include::modules/getting-started/proc-customizing-the-home-page-cards.adoc[leveloffset=+1] | ||
| include::modules/getting-started/proc-defining-the-layout-of-the-product-home-page.adoc[leveloffset=+1] | ||
|
|
261 changes: 261 additions & 0 deletions
261
modules/getting-started/proc-customizing-the-home-page-cards.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,261 @@ | ||
| :_newdoc-version: 2.18.3 | ||
| :_template-generated: 2024-11-13 | ||
| :_mod-docs-content-type: PROCEDURE | ||
|
|
||
| [id="customizing-the-home-page-cards_{context}"] | ||
| = Customizing the Home page cards | ||
|
|
||
| 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` file configuration: | ||
|
|
||
| [source,yaml] | ||
| ---- | ||
| dynamicPlugins: | ||
| frontend: | ||
| janus-idp.backstage-plugin-dynamic-home-page: | ||
| dynamicRoutes: | ||
| - path: / | ||
| importName: DynamicHomePage | ||
| mountPoints: | ||
| - mountPoint: home.page/cards | ||
| importName: SearchBar | ||
| config: | ||
| layouts: | ||
| xl: { w: 10, h: 1, x: 1 } | ||
| lg: { w: 10, h: 1, x: 1 } | ||
| md: { w: 10, h: 1, x: 1 } | ||
| sm: { w: 10, h: 1, x: 1 } | ||
| xs: { w: 12, h: 1 } | ||
| xxs: { w: 12, h: 1 } | ||
| - mountPoint: home.page/cards | ||
| importName: QuickAccessCard | ||
| config: | ||
| layouts: | ||
| xl: { w: 7, h: 8 } | ||
| lg: { w: 7, h: 8 } | ||
| md: { w: 7, h: 8 } | ||
| sm: { w: 12, h: 8 } | ||
| xs: { w: 12, h: 8 } | ||
| xxs: { w: 12, h: 8 } | ||
| - mountPoint: home.page/cards | ||
| importName: CatalogStarredEntitiesCard | ||
| config: | ||
| layouts: | ||
| xl: { w: 5, h: 4, x: 7 } | ||
| lg: { w: 5, h: 4, x: 7 } | ||
| md: { w: 5, h: 4, x: 7 } | ||
| sm: { w: 12, h: 4 } | ||
| xs: { w: 12, h: 4 } | ||
| xxs: { w: 12, h: 4 } | ||
| ---- | ||
|
|
||
| .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 {product} as follows: | ||
|
|
||
| Search:: | ||
| + | ||
| -- | ||
| [source,yaml] | ||
| ---- | ||
| dynamicPlugins: | ||
| frontend: | ||
| janus-idp.backstage-plugin-dynamic-home-page: | ||
| mountPoints: | ||
| - mountPoint: home.page/cards | ||
| importName: SearchBar | ||
| config: | ||
| layouts: | ||
| xl: { w: 10, h: 1, x: 1 } | ||
| lg: { w: 10, h: 1, x: 1 } | ||
| md: { w: 10, h: 1, x: 1 } | ||
| sm: { w: 10, h: 1, x: 1 } | ||
| xs: { w: 12, h: 1 } | ||
| xxs: { w: 12, h: 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:: | ||
| + | ||
| -- | ||
| [source,yaml] | ||
| ---- | ||
| dynamicPlugins: | ||
| frontend: | ||
| janus-idp.backstage-plugin-dynamic-home-page: | ||
| mountPoints: | ||
| - mountPoint: home.page/cards | ||
| importName: QuickAccessCard | ||
| config: | ||
| layouts: | ||
| xl: { h: 8 } | ||
| lg: { h: 8 } | ||
| md: { h: 8 } | ||
| sm: { h: 8 } | ||
| xs: { h: 8 } | ||
| xxs: { h: 8 } | ||
| ---- | ||
|
|
||
| .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:: | ||
| + | ||
| -- | ||
| [source,yaml] | ||
| ---- | ||
| dynamicPlugins: | ||
| frontend: | ||
| janus-idp.backstage-plugin-dynamic-home-page: | ||
| mountPoints: | ||
| - mountPoint: home.page/cards | ||
| importName: Headline | ||
| config: | ||
| layouts: | ||
| xl: { h: 1 } | ||
| lg: { h: 1 } | ||
| md: { h: 1 } | ||
| sm: { h: 1 } | ||
| xs: { h: 1 } | ||
| xxs: { h: 1 } | ||
| props: | ||
| title: Important info | ||
| ---- | ||
|
|
||
| .Available props | ||
| |=== | ||
| | Prop | Default | Description | ||
|
|
||
| | `title` | ||
| | none | ||
| | Title | ||
| |=== | ||
| -- | ||
|
|
||
| Markdown:: | ||
| + | ||
| -- | ||
| [source,yaml] | ||
| ---- | ||
| dynamicPlugins: | ||
| frontend: | ||
| janus-idp.backstage-plugin-dynamic-home-page: | ||
| mountPoints: | ||
| - mountPoint: home.page/cards | ||
| importName: MarkdownCard | ||
| config: | ||
| layouts: | ||
| xl: { w: 6, h: 4 } | ||
| lg: { w: 6, h: 4 } | ||
| md: { w: 6, h: 4 } | ||
| sm: { w: 6, h: 4 } | ||
| xs: { w: 6, h: 4 } | ||
| xxs: { w: 6, h: 4 } | ||
| props: | ||
| title: Company links | ||
| content: | | ||
| ### RHDH | ||
| * [Website](https://developers.redhat.com/rhdh/overview) | ||
| * [Documentation](https://docs.redhat.com/en/documentation/red_hat_developer_hub/) | ||
| * [GitHub Showcase](https://github.com/janus-idp/backstage-showcase) | ||
| * [GitHub Plugins](https://github.com/janus-idp/backstage-plugins) | ||
| - mountPoint: home.page/cards | ||
| importName: Markdown | ||
| config: | ||
| layouts: | ||
| xl: { w: 6, h: 4, x: 6 } | ||
| lg: { w: 6, h: 4, x: 6 } | ||
| md: { w: 6, h: 4, x: 6 } | ||
| sm: { w: 6, h: 4, x: 6 } | ||
| xs: { w: 6, h: 4, x: 6 } | ||
| xxs: { w: 6, h: 4, x: 6 } | ||
| props: | ||
| title: Important company links | ||
| content: | | ||
| ### RHDH | ||
| * [Website](https://developers.redhat.com/rhdh/overview) | ||
| * [Documentation](https://docs.redhat.com/en/documentation/red_hat_developer_hub/) | ||
| * [GitHub Showcase](https://github.com/janus-idp/backstage-showcase) | ||
| * [GitHub Plugins](https://github.com/janus-idp/backstage-plugins) | ||
| ---- | ||
| -- | ||
|
|
||
| Placeholder:: | ||
| + | ||
| -- | ||
| [source,yaml] | ||
| ---- | ||
| dynamicPlugins: | ||
| frontend: | ||
| janus-idp.backstage-plugin-dynamic-home-page: | ||
| mountPoints: | ||
| - mountPoint: home.page/cards | ||
| importName: Placeholder | ||
| config: | ||
| layouts: | ||
| xl: { w: 1, h: 1 } | ||
| lg: { w: 1, h: 1 } | ||
| md: { w: 1, h: 1 } | ||
| sm: { w: 1, h: 1 } | ||
| xs: { w: 1, h: 1 } | ||
| xxs: { w: 1, h: 1 } | ||
| props: | ||
| showBorder: true | ||
| debugContent: '1' | ||
| ---- | ||
| -- | ||
|
|
||
| Catalog starred entities:: | ||
| + | ||
| -- | ||
| [source,yaml] | ||
| ---- | ||
| dynamicPlugins: | ||
| frontend: | ||
| janus-idp.backstage-plugin-dynamic-home-page: | ||
| mountPoints: | ||
| - mountPoint: home.page/cards | ||
| importName: CatalogStarredEntitiesCard | ||
| ---- | ||
| -- | ||
|
|
||
| Featured docs:: | ||
| + | ||
| -- | ||
| [source,yaml] | ||
| ---- | ||
| dynamicPlugins: | ||
| frontend: | ||
| janus-idp.backstage-plugin-dynamic-home-page: | ||
| mountPoints: | ||
| - mountPoint: home.page/cards | ||
| importName: FeaturedDocsCard | ||
| ---- | ||
| -- |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.