-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(global-header): add initial tech docs (#413)
Signed-off-by: Christoph Jerolimov <[email protected]>
- Loading branch information
1 parent
f35b797
commit 2f73462
Showing
5 changed files
with
70 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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,8 @@ | ||
# Global header | ||
|
||
Red Hat Developer Hub includes a new configable and highly extendable global header plugin starting with RHDH 1.5. | ||
|
||
By default it includes a Search input field, Create, Support[^1] and Notifications[^2] icon buttons and a user profile dropdown. | ||
|
||
[^1]: Only when the Support URL is configured in the `app-config.yaml`. | ||
[^2]: Only when the notification plugin is installed. |
This file contains 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,7 @@ | ||
site_name: RHDH Global Header | ||
|
||
plugins: | ||
- techdocs-core | ||
|
||
nav: | ||
- About: index.md |
50 changes: 50 additions & 0 deletions
50
workspaces/global-header/plugins/global-header/dev/configuration.md
This file contains 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,50 @@ | ||
# Configuration | ||
|
||
The Red Hat Developer Hub Global Header can be configured via [dynamic plugins](https://github.com/redhat-developer/rhdh/blob/main/docs/dynamic-plugins/index.md) and [dynamic plugin mount points](https://github.com/redhat-developer/rhdh/blob/main/docs/dynamic-plugins/frontend-plugin-wiring.md). | ||
|
||
It is the RHDH default "[application header](https://github.com/redhat-developer/rhdh/blob/main/docs/dynamic-plugins/frontend-plugin-wiring.md#adding-application-header)" implementation that customers can extend or replace. | ||
|
||
There are multiple level of extension points (mount points) involved. | ||
|
||
1. Red Hat Developer Hub loads all "application headers" | ||
2. The Global Header plugin is loaded by default (it's of only header implementation) | ||
- The header itself can be extended with additional buttons, dropdowns via dynamic plugins | ||
- Also the Create and Profile Dropdowns can be extended with additional options | ||
|
||
## Disabling the Global Header | ||
|
||
The RHDH Global Header can be disabled competely by disabling the right plugin: | ||
|
||
```yaml | ||
# Disabling global header | ||
- package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-global-header | ||
disabled: true | ||
``` | ||
## Replacing the Global Header with your own header | ||
To replace the RHDH Global Header with a completly custom header, the default should be disabled as well (see above). | ||
After that customers can implement and install their own header as a dynamic plugin and include a configuration like this: | ||
```yaml | ||
# Custom header implementation | ||
- package: <npm or oci package-reference> | ||
disabled: false | ||
pluginConfig: | ||
dynamicPlugins: | ||
frontend: | ||
<package_name>: | ||
mountPoints: | ||
- mountPoint: application/header | ||
importName: <Header component name> | ||
config: | ||
layout: | ||
position: above-main-content | ||
``` | ||
<!-- | ||
## Disable Global Header features | ||
## Add custom components to the Global Header | ||
--> |