Skip to content

Commit 7fd34f2

Browse files
authored
RHIDP-8634-2-1-8 - Improve the documentation to help developers convert plugins to dynamic plugins (redhat-developer#1514)
1 parent d4c5a9a commit 7fd34f2

22 files changed

+276
-28
lines changed

assemblies/dynamic-plugins/assembly-install-third-party-plugins-rhdh.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
:_mod-docs-content-type: ASSEMBLY
22

33
[id="assembly-install-third-party-plugins-rhdh"]
4-
= Installing third-party plugins in {product}
4+
= Installing {plugin-type-name} plugins in {product}
55
:context: assembly-install-third-party-plugins-rhdh
66

7-
You can install a third-party plugins in {product} without rebuilding the {product-very-short} application.
7+
You can install a {plugin-type-name} plugins in {product} without rebuilding the {product-very-short} application.
88

99
The location of the `dynamic-plugin-config.yaml` file depends on the deployment method. For more details, refer to xref:proc-config-dynamic-plugins-rhdh-operator_rhdh-installing-rhdh-plugins[Installing dynamic plugins with the {product} Operator] and xref:con-install-dynamic-plugin-helm_rhdh-installing-rhdh-plugins[Installing dynamic plugins using the Helm chart].
1010

@@ -30,5 +30,5 @@ include::../modules/dynamic-plugins/proc-load-plugin-tgz-file.adoc[leveloffset=+
3030
include::../modules/dynamic-plugins/proc-load-plugin-js-package.adoc[leveloffset=+2]
3131

3232
//example third-party plugin installation
33-
include::../modules/dynamic-plugins/proc-example-third-party-plugin-installation.adoc[leveloffset=+2]
33+
//include::../modules/dynamic-plugins/proc-example-third-party-plugin-installation.adoc[leveloffset=+2]
3434

assemblies/dynamic-plugins/assembly-package-publish-third-party-dynamic-plugin.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
:_mod-docs-content-type: ASSEMBLY
22

33
[id="assembly-package-publish-third-party-dynamic-plugin"]
4-
= Packaging and publishing third-party plugins as dynamic plugins
4+
= Packaging and publishing {plugin-type-name} plugins as dynamic plugins
55
:context: assembly-package-publish-third-party-dynamic-plugin
66

7-
After xref:proc-export-third-party-plugins-rhdh_assembly-third-party-plugins[exporting a third-party plugin], you can package the derived package into one of the following supported formats:
7+
After xref:proc-export-third-party-plugins-rhdh_assembly-third-party-plugins[exporting a {plugin-type-name} plugin], you can package the derived package into one of the following supported formats:
88

99
* Open Container Initiative (OCI) image (recommended)
1010
* TGZ file

assemblies/dynamic-plugins/assembly-third-party-plugins.adoc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
:_mod-docs-content-type: ASSEMBLY
22

33
[id="assembly-third-party-plugins"]
4-
= Third-party plugins in {product}
4+
= {plugin-type-name-uppercase} plugins in {product}
55
:context: assembly-third-party-plugins
66

7-
You can integrate third-party dynamic plugins into {product} to enhance its functionality without modifying its source code or rebuilding it. To add these plugins, export them as derived packages.
7+
You can integrate {plugin-type-name} dynamic plugins into {product} to enhance its functionality without modifying its source code or rebuilding it. To add these plugins, export them as derived packages.
88

99
While exporting the plugin package, you must ensure that dependencies are correctly bundled or marked as shared, depending on their relationship to the {product-short} environment.
1010

11-
To integrate a third-party plugin into {product-short}:
11+
To integrate a {plugin-type-name} plugin into {product-short}:
1212

1313
. First, obtain the plugin's source code.
1414
. Export the plugin as a dynamic plugin package. See xref:proc-export-third-party-plugins-rhdh_assembly-third-party-plugins[].
@@ -24,5 +24,10 @@ include::assembly-package-publish-third-party-dynamic-plugin.adoc[leveloffset=+1
2424
//Install third-party plugin
2525
include::assembly-install-third-party-plugins-rhdh.adoc[leveloffset=+1]
2626

27+
include::../modules/dynamic-plugins/proc-custom-plugin-conversion.adoc[leveloffset=+1]
28+
29+
include::../modules/dynamic-plugins/proc-custom-plugin-add-to-rhdh.adoc[leveloffset=+2]
30+
31+
include::../modules/dynamic-plugins/proc-displaying-frontend-plugin.adoc[leveloffset=+2]
2732

2833

58.5 KB
Loading

images/rhdh/custom-entity-view.png

54.5 KB
Loading

images/rhdh/custom-extensions.png

50.7 KB
Loading
58.8 KB
Loading

images/rhdh/custom-limitations.png

64.3 KB
Loading
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
:_mod-docs-content-type: CONCEPT
2+
3+
[id="con-converting-custom-plugins"]
4+
= Dynamic Plugins
5+
{product} implements a dynamic plugin system. You can install, configure, and load plugins at runtime without changing or rebuilding the application. You only need a restart. You can load these plugins from NPM, tarballs, or OCI compliant container images.
6+
7+
With dynamic plugins, instead of modifying the {backstage} application itself, you create a `dynamic-plugins.yaml` file to specify the plugins that {product} will install and enable at startup. For example, the following configuration loads a plugin named `plugin-name`, which is stored in a `Quay.io` container image at `quay.io/account-name/image-name`:
8+
9+
.`dynamic-plugins.yaml` fragment
10+
[source,yaml]
11+
----
12+
plugins:
13+
- package: oci://quay.io/account-name/image-name:tag!plugin-name
14+
disabled: false
15+
pluginConfig: {}
16+
----

modules/dynamic-plugins/con-rhdh-plugins.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ To install or update a static plugin you must update your {product-very-short} a
1919

2020
To install or update a dynamic plugin, you must restart your {product-very-short} application source code after installing the plugin.
2121

22-
You can also import your own custom-built or third-party plugins or create new features using dynamic plugins.
22+
You can also import your own custom-built or {plugin-type-name} plugins or create new features using dynamic plugins.
2323

2424

2525
Dynamic plugins boost modularity and scalability by enabling more flexible and efficient functionality loading, significantly enhancing the developer experience and customization of your {product-very-short} instance.

0 commit comments

Comments
 (0)