generated from redhat-developer/new-project-template
-
Notifications
You must be signed in to change notification settings - Fork 47
RHIDP-6500: Modularize customizing the Tech Radar page #1069
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
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
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,22 @@ | ||
[id='proc-customizing-the-tech-radar-page_{context}'] | ||
= Customizing the Tech Radar page in {product} | ||
|
||
In {product}, the Tech Radar page is provided by the `tech-radar` dynamic plugin, which is disabled by default. For information about enabling dynamic plugins in {product} see link:{configuring-dynamic-plugins-book-url}[{configuring-dynamic-plugins-book-title}]. | ||
|
||
In {product}, you can configure Learning Paths by passing the data into the `{my-app-config-file}` file as a proxy. The base Tech Radar URL must include the `/developer-hub/tech-radar` proxy. | ||
|
||
[NOTE] | ||
==== | ||
Due to the use of overlapping `pathRewrites` for both the `tech-radar` and `homepage` quick access proxies, you must create the `tech-radar` configuration (`^api/proxy/developer-hub/tech-radar`) before you create the `homepage` configuration (`^/api/proxy/developer-hub`). | ||
|
||
For more information about customizing the Home page in {product}, see xref:customizing-the-home-page[Customizing the Home page in {product}]. | ||
==== | ||
|
||
You can provide data to the Tech Radar page from the following sources: | ||
|
||
* JSON files hosted on GitHub or GitLab. | ||
* A dedicated service that provides the Tech Radar data in JSON format using an API. | ||
|
||
include::proc-customizing-the-tech-radar-page-by-using-a-json-file.adoc[leveloffset=+1] | ||
|
||
include::proc-customizing-the-tech-radar-page-by-using-a-customization-service.adoc[leveloffset=+1] | ||
74 changes: 0 additions & 74 deletions
74
modules/customizing-the-tech-radar-page/proc-customize-rhdh-tech-radar-page.adoc
This file was deleted.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
...page/proc-customizing-the-tech-radar-page-by-using-a-customization-service.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,37 @@ | ||
[id='proc-customizing-rhdh-tech-radar-page-by-using-a-customization-service_{context}'] | ||
= Customizing the Tech Radar page by using a customization service | ||
|
||
For advanced scenarios, you can host your {product} customization service to provide data to all configurable {product-short} pages, such as the Tech Radar page. | ||
You can even use a different service for each page. | ||
|
||
.Prerequisites | ||
* You have specified the data sources for the Tech Radar plugin in the `integrations` section of the `{my-app-config-file}` file. | ||
For example, to configure GitHub as an integration, see link:{authentication-book-url}#authenticating-with-github[Authenticating with GitHub]. | ||
|
||
* You have enabled the `./dynamic-plugins/dist/backstage-community-plugin-tech-radar` and `/dynamic-plugins/dist/backstage-community-plugin-tech-radar-backend-dynamic` plugins. | ||
|
||
.Procedure | ||
. Deploy your {product-short} customization service on the same {ocp-short} cluster as your {product-short} instance. | ||
You can find an example at link:https://github.com/redhat-developer/red-hat-developer-hub-customization-provider[`red-hat-developer-hub-customization-provider`], that provides the same data as default {product-short} data. | ||
The customization service provides a Tech Radar data URL such as: `pass:c,a,q[http://_<rhdh-customization-provider>_/tech-radar]`. | ||
|
||
. Add the dedicated service as an allowed host by adding the following code to the `{my-app-config-file}` file: | ||
+ | ||
[source,yaml,subs='+quotes'] | ||
---- | ||
backend: | ||
reading: | ||
allow: | ||
- host: '_<rhdh_customization_provider_base_url>_' | ||
---- | ||
`_<rhdh_customization_provider_base_url>_`:: Enter the base URL of your Tech Radar data URL, such as: `pass:c,a,q[_<rhdh-customization-provider>_]`. | ||
|
||
. Add the following to the `{my-app-config-file}` file: | ||
+ | ||
[source,yaml,subs='+quotes'] | ||
---- | ||
techRadar: | ||
url: _<tech_radar_data_url>_ | ||
---- | ||
|
||
`_<tech_radar_data_url>_`:: Enter your Tech Radar data URL, such as: `pass:c,a,q[http://_<rhdh-customization-provider>_/tech-radar]`. |
24 changes: 24 additions & 0 deletions
24
...-tech-radar-page/proc-customizing-the-tech-radar-page-by-using-a-json-file.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,24 @@ | ||
[id='proc-customizing-the-tech-radar-page-by-using-a-json-file_{context}'] | ||
= Customizing the Tech Radar page by using a JSON file | ||
|
||
For ease of use and simplicity, you can configure the Tech Radar page by using a hosted JSON file. | ||
|
||
.Prerequisites | ||
|
||
* You have specified the data sources for the Tech Radar plugin in the `integrations` section of the `{my-app-config-file}` file. For example, to configure GitHub as an integration, see link:{authentication-book-url}#authenticating-with-github[Authenticating with GitHub]. | ||
|
||
* You have enabled the `./dynamic-plugins/dist/backstage-community-plugin-tech-radar` and `/dynamic-plugins/dist/backstage-community-plugin-tech-radar-backend-dynamic` plugins. | ||
|
||
.Procedure | ||
|
||
. Publish the JSON file containing your Tech Radar data to a web server, such as GitHub or Gitlab. You can find an example at link:https://raw.githubusercontent.com/redhat-developer/rhdh/release-{product-version}/packages/app/public/tech-radar/data-default.json[]. | ||
|
||
. Configure {product-short} to access the Tech Radar data from the hosted JSON files, by adding the following to the `{my-app-config-file}` file: | ||
+ | ||
[source,yaml,subs='+quotes'] | ||
---- | ||
techRadar: | ||
url: _<tech_radar_data_url>_ | ||
---- | ||
|
||
`_<tech_radar_data_url>_`:: Enter the Tech Radar data hosted JSON URL. |
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
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.