Chapter 6. Customizing the Learning Paths in Red Hat Developer Hub
In Red Hat Developer Hub, you can configure Learning Paths by hosting the required data externally, and using the built-in proxy to deliver this data rather than the default.
You can provide Learning Paths data from the following sources:
- A JSON file hosted on a web server, such as GitHub or GitLab.
- A dedicated service that provides the Learning Paths data in JSON format using an API.
6.1. About Learning Paths Copy linkLink copied to clipboard!
You can use the Learning Paths plugin in Red Hat Developer Hub to integrate customized e-learning content into the developer workflows. By using Learning Paths, you can create a collaborative learning culture, boost productivity, and ensure that teams stay updated with relevant best practices and technologies. The overall purpose is to accelerate onboarding, address skill gaps, ensure regulatory compliance, promote best practices, and facilitate product updates.
6.2. Customizing the Learning Paths by using a hosted JSON file Copy linkLink copied to clipboard!
For ease of use and simplicity, you can configure the Learning Paths by using a hosted JSON file.
Procedure
- Publish the JSON file containing your Learning Paths data to a web server, such as GitHub or Gitlab. You can find an example at https://raw.githubusercontent.com/redhat-developer/rhdh/release-1.6/packages/app/public/learning-paths/data.json.
Configure the Developer Hub proxy to access the Learning Paths data from the hosted JSON file, by adding the following to the
app-config.yamlfile:Copy to Clipboard Copied! Toggle word wrap Toggle overflow <target>-
Enter the hosted JSON file base URL, such as
https://raw.githubusercontent.com. <learning_path.json>Enter the hosted JSON file path without the base URL, such as
'/redhat-developer/rhdh/main/packages/app/public/learning-paths/data.json'TipWhen also configuring the home page, due to the use of overlapping
pathRewritesfor both thelearning-pathandhomepagequick access proxies, create thelearning-pathsconfiguration (^api/proxy/developer-hub/learning-paths) before you create thehomepageconfiguration (^/api/proxy/developer-hub). For example:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Additional resources
6.3. Customizing the Learning Paths by using a customization service Copy linkLink copied to clipboard!
For advanced scenarios, you can host your Red Hat Developer Hub customization service to provide data to all configurable Developer Hub pages, such as the Learning Paths. You can even use a different service for each page.
Procedure
-
Deploy your Developer Hub customization service on the same OpenShift Container Platform cluster as your Developer Hub instance. You can find an example at
red-hat-developer-hub-customization-provider, that provides the same data as default Developer Hub data. The customization service provides a Learning Paths data URL such as:http://<rhdh-customization-provider>/learning-paths. Configure the Developer Hub proxy to use your dedicated service to provide the Learning Path data, add the following to the
app-config.yamlfile:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- Change to "false" in case of using self hosted cluster with a self-signed certificate
6.4. Starting and completing lessons in Learning Paths Copy linkLink copied to clipboard!
As a developer, you can start a course and complete the lessons at your own pace.
Prerequisites
- You can log in to developers.redhat.com
- Your platform engineer has granted you access to the Learning Paths plugin.
Procedure
To start a course in Learning Paths, complete the following steps:
- In your Red Hat Developer Hub navigation menu, click Learning Paths.
Select the tile for the course you would like to begin.
NoteThis action redirects you to the main page of the course in the Red Hat Developers site.