diff --git a/docs/vendor/enterprise-portal-configure.mdx b/docs/vendor/enterprise-portal-configure.mdx index 7438b1d61d..3b891b2c3e 100644 --- a/docs/vendor/enterprise-portal-configure.mdx +++ b/docs/vendor/enterprise-portal-configure.mdx @@ -82,13 +82,11 @@ To configure customer emails: [View a larger version of this image](/images/enterprise-portal-customer-emails-edit.png) -## Customize Documentation +## Add a Link to Documentation -The install instructions available in the Enterprise Portal are automatically generated based on the install types and options enabled in the customer's license. For more information about managing the installation types and options, see [Manage Install Types for a License](/vendor/licenses-install-types). +For each of your supported install types, you can add a link your installation documentation. The link you provide is displayed on the Enterprise Portal **Install** page. -You can also customize the documentation that is displayed in the Enterprise Portal by including a link to your installation instructions or by adding your own pre- and post-installation instructions. - -To customize documentation: +To add a link to your documentation in the Enterprise Portal: 1. In the Vendor Portal, go to **Enterprise Portal > Knowledge Base**. @@ -98,12 +96,587 @@ To customize documentation: 1. In the panel on the left, select the installation type. -1. Customize the documentation for the selected installation type as desired: - 1. In the documentation links section, add a link to your installation documentation. The link is displayed on the Enterprise Portal **Install** page. - 1. In the documentation content section, add pre- and post-installation instructions in markdown format. Click **Preview** to see a preview of your changes. +1. In the documentation links section, add a link to your application install documentation. + +1. Click **Save changes**. + +## Add Pre- and Post-Install Instructions - :::note - By default, these same instructions are shown for all release channels. To add channel-specific instructions, go to the **Channel customizations** section. - ::: +For each of your supported install types, you can add custom pre- and post-install instructions for users. This is useful if there are additional prerequisites or follow-up steps that users need to complete in addition to the primary installation instructions. + +:::note +The same pre- and post- instructions are shown for all your release channels. To add channel-specific instructions, see [Customize Channel-Specific Install Instructions](#customize-channel-install-instructions). +::: + +To customize the pre- and post-install instructions for your application: + +1. In the Vendor Portal, go to **Enterprise Portal > Knowledge Base**. + +  + + [View a larger version of this image](/images/enterprise-portal-knowledge-base.png) + +1. In the panel on the left, select the installation type. + +1. In the documentation content section, add pre- and post-installation instructions in markdown format. Click **Preview** to see a preview of your changes. 1. Click **Save changes**. + +## Customize Channel-Specific Install Instructions (Alpha) {#customize-channel-install-instructions} + +:::note +Custom install instructions are Alpha and subject to change. To access this feature, a feature flag must be enabled for your team. For more information, reach out to your Replicated account representative. +::: + +By default, the installation instructions available in the Enterprise Portal are automatically generated based on the install types and options enabled in the customer's license. These default installation instructions are the same across all release channels. For more information about managing the install types and options, see [Manage Install Types for a License](/vendor/licenses-install-types). + +You can also write custom, channel-specific instructions. This is useful if you need to provide unique installation steps for any of your release channels. For example, you can add custom steps, rename steps or sections to match your documentation, include videos or diagrams, and more. + +These custom installation instructions support MDX. MDX is a format that combines Markdown with JSX, allowing you to use components and template variables in your instructions. MDX templates support the following: + +- **Template variables**: Access dynamic data like application name, release version, registry settings, and customer inputs +- **Built-in UI components**: Use UI components like code blocks, alerts, tabs, and progress indicators +- **Conditional rendering**: Conditionally show or hide content. For example, show or hide certain steps based on the installation options supported by the customer's license + +### Customize Channel-Specific Instructions + +To customize channel-specific installation instructions: + +1. In the Vendor Portal, go to **Enterprise Portal > Knowledge Base**. + +1. Scroll to the **Channel customizations** section. + +1. For the channel where you want to customize instructions, click **Enable**. + +  + + [View a larger version of this image](/images/vendor-portal-custom-instructions-enable.png) + +1. In the MDX template editor, write your custom installation instructions using Markdown, template variables, and MDX components. + + The editor provides autocomplete for available template variables and components. Start typing `{` for template variables or `<` for MDX components to see suggestions. For more information about the available variables and components, see [Supported MDX Template Variables](#vars) and [Supported MDX Components](#components) below. + +  + + [View a larger version of this image](/images/vendor-portal-custom-instructions-editing.png) + +1. Click **Save changes** to save your custom installation instructions. + +### Revert to Default Instructions + +To disable custom instructions for a channel and revert to the default automatically-generated instructions: + +1. In the **Channel customizations** section, select the channel. + +1. For the target channel, click **Disable**. When channel customizations are disabled, the Enterprise Portal shows the default installation instructions for the channel. + + :::note + Your custom documentation is saved in the **Channel customizations** MDX template editor. You can enable the custom instructions again by clicking **Enable** for the channel. + ::: + +### Supported MDX Template Variables {#vars} + +:::note +For a complete list of available variables, use the autocomplete feature in the editor. +::: + +The following describes some of the supported MDX template variables: + +
| Variable | +Description | +Example | +
|---|---|---|
{`{app.name}`} |
+ Application name | +`My Application` | +
{`{app.slug}`} |
+ Application slug (identifier) | +`my-app` | +
{`{channel.name}`} |
+ Channel name | +`Stable` | +
{`{channel.slug}`} |
+ Channel slug | +`stable` | +
{`{release.versionLabel}`} |
+ Release version number | +`1.2.3` | +
{`{release.sequence}`} |
+ Release sequence number | +`42` | +
{`{installOptions.adminConsoleUrl}`} |
+ Admin Console URL (user input, dynamic) | +`https://admin.example.com` | +
{`{installOptions.proxyUrl}`} |
+ HTTP/HTTPS proxy URL (user input, dynamic) | +`https://proxy.example.com:8080` | +
{`{installOptions.privateRegistryUrl}`} |
+ Private registry hostname (user input, dynamic) | +`registry.example.com:5000` | +
{`{branding?.title}`} |
+ Enterprise Portal title (optional) | +`MyApp Enterprise Portal` | +
{`{branding?.primaryColor}`} |
+ Primary brand color (optional) | +`#4a53b0` | +
{`{branding?.supportPortalLink}`} |
+ Support portal URL (optional) | +`https://support.example.com` | +
{`{installation.licenseId}`} |
+ Customer license ID | +`2cHXb1RCttzpR0xvnNWyaZCgDBP` | +
{`{installation.serviceAccountId}`} |
+ Service account identifier | +`2cHXb1RCttzpR0xvnNWyaZCgDBP` | +
{`{images.raw}`} |
+ Array of image names without registry (Helm only) | +`["nginx:1.19", "postgres:13"]` | +
{`{images.full}`} |
+ Array of complete image references (Helm only) | +`["registry.replicated.com/..."]` | +
| Name | +Description | +Props | +
|---|---|---|
| ` |
+ + Display callout boxes with different styles. + | +`icon` (boolean, optional): Show or hide the icon in the callout. | +
| ` |
+ + General purpose alert with customizable type + | +
+
|
+
| ` |
+
+ Display inline code. +To use template variables inside CodeBlock, wrap them in template literals using curly braces: `{`...`}`. For example, ``` Limitation: Dynamic user input variables (like `installOptions.privateRegistryUrl`, `installOptions.proxyUrl`, `installOptions.adminConsoleUrl`) are not supported in code components. Use placeholders like ` |
+ None | +
| ` |
+
+ Display multi-line code blocks with syntax highlighting. +To use template variables inside CodeBlock, wrap them in template literals using curly braces: `{`...`}`. For examples of this, see [Example](#example). +Limitation: Dynamic user input variables (like `installOptions.privateRegistryUrl`, `installOptions.proxyUrl`, `installOptions.adminConsoleUrl`) are not supported in code components. Use placeholders like ` |
+
+
|
+
| ` |
+
+ Display shell commands with copy functionality. +To use template variables inside CommandBlock, wrap them in template literals using curly braces: `{`...`}`. For examples of this, see [Example](#example). +Limitation: Dynamic user input variables (like `installOptions.privateRegistryUrl`, `installOptions.proxyUrl`, `installOptions.adminConsoleUrl`) are not supported in code components. Use placeholders like ` |
+
+
|
+
| Name | +Description | +Props | +
|---|---|---|
| ` |
+ Create tabbed content sections | +`defaultActiveTab` (number, optional): Index of initially active tab | +
| ` |
+ Individual tab within a Tabs container | +`title` (string, required): Tab label text | +
| ` |
+ Create collapsible content sections | +`title` (string, required), `defaultOpen` (boolean, optional) | +
| ` |
+ Show or hide content based on conditions | +`when` (string, required): JavaScript expression to evaluate | +
| Name | +Description | +Props | +
|---|---|---|
| ` |
+ Numbered installation step | +
+
|
+
| ` |
+ Display prerequisites section | +`title` (string, optional): Custom title for the section | +
| ` |
+ Display troubleshooting section | +`title` (string, optional): Custom title for the section | +
| Name | +Description | +Props | +
|---|---|---|
| ` |
+ Collect proxy URL from user | +
+
|
+
| ` |
+ Collect registry credentials | +
+
|
+
| ` |
+ Collect Admin Console URL | +
+
|
+
| Name | +Description | +Props | +
|---|---|---|
| ` |
+ Link to support resources | +
+
|
+