Skip to content

Commit 8aa7010

Browse files
authored
docs: Self-Hosted Sidebar Refactor (#8299)
* Added tier-1; palette/vertex pages moved; palette reorg WIP * Rough draft of self-hosted structure complete; links, redirects, and title updates needed * Revert "resolving merge conflicts" This reverts commit cefadfe, reversing changes made to dc7b83f. * Link and metadata improvement for palette * Links fixed for Palette; beginning VerteX * Vertex finished; updating misc links; PaletteVerteXUrlMapper updated * More link fixing * more link fixing * Merge conflicts * Adding supported environments tier; sidebar in place; builds passing * Update _partials/profiles/_create-profile-next-steps.mdx * README updates * Fixing broken links, minor placement and naming adjustments, updating PaletteVertexUrlMapper functionality * Fixing links due to branch merge
1 parent 8702205 commit 8aa7010

260 files changed

Lines changed: 6301 additions & 3204 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 121 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,10 @@ Partials may be organised in any further subfolders as required. For example, yo
721721
`_partials/public-cloud/_palette_setup.mdx`.
722722
723723
In order to aid with organisation and categorization, partials must have a `partial_category` and `partial_name` defined
724-
in their frontmatter:
724+
in their frontmatter. Individual values assigned for `partial_category` and `partial_name` do not have to be unique, but
725+
the _combination_ of the two must be unique to identify the correct partial. For example, you can have multiple partials
726+
with a `partial_category` of `public-cloud` and multiple partials with a `partial_name` of `palette-setup`, but only
727+
_one_ can have _both_ a `partial_category` of `public-cloud` _and_ a `partial_name` of `palette-setup`.
725728
726729
```mdx
727730
---
@@ -732,13 +735,13 @@ partial_name: palette-setup
732735
This is how you set up Palette in {props.cloud}.
733736
```
734737
735-
Partials are customized using properties which can be read using the `{props.field}` syntax.
738+
Partials are customized by defining properties, which can be accessed with the `{props.propertyName}` syntax.
736739
737740
Once your partial has been created, run the `make generate-partials` command to make your partial available for use.
738741
This command will also be invoked during the `make start` and `make build` commands.
739742
740743
Finally, you can reference your partial in any `*.md` file by using the `PartialsComponent`, together with the specified
741-
category and name of the partial:
744+
category and name of the partial. Note that the properties `category` and `name` are _always_ required.
742745
743746
```md
744747
<PartialsComponent
@@ -750,55 +753,154 @@ category and name of the partial:
750753
751754
The snippet above will work with the example partial we have in our repository, so you can use it for testing.
752755
753-
Note that the `message` field corresponds to the `{props.message}` reference in the `_partials/_partial_example.mdx`
754-
file.
756+
Note that the `message` field would correspond to the `{props.message}` reference in the
757+
`_partials/_partial_example.mdx` file. When defining a value in a partial with `{props.propertyName}` syntax,
758+
`propertyName` can be substituted for any field _except_ `category` and `name`, both of which are required and reserved
759+
properties.
760+
761+
Any properties passed to the `PartialsComponent` (such as those defined in [VersionedLink](#links) and
762+
[PaletteVertexUrlMapper](#palettevertex-urls) within `.mdx` files) will be forwarded to the loaded partial as
763+
`{props.propertyName}`. This enables partials to receive dynamic values such as `install` (for installation-specific
764+
content), `edition`, `version`, and other custom properties.
765+
766+
```md
767+
<PartialsComponent
768+
category="self-hosted"
769+
name="install-next-steps"
770+
install="vmware"
771+
edition="Palette"
772+
/>
773+
```
755774
756-
## Palette/VerteX URLs
775+
### Internal Links
757776
758-
A special component has been created to handle the generation of URLs for Palette and VerteX. The component is called
759-
[PaletteVertexUrlMapper](./src/components/PaletteVertexUrlMapper/PaletteVertexUrlMapper.tsx). This component is intended
760-
for usage withing partials. You can use the component to change the base path of the URL to either Palette or VerteX.
761-
The component will automatically prefix the path to the URL. The component has the following props:
777+
Due to the complexities of Docusaurus plugin rendering, links do not support versioning in `*.mdx` files. If you want to
778+
add an internal link you will have to use the `VersionedLink` component inside the `*.mdx` file.
762779
763-
- `edition` - The edition of the URL. This can be either `Palette` or `Vertex`. Internally, the component will use this
764-
value to determine the base URL.
780+
```mdx
781+
---
782+
partial_category: public-cloud
783+
partial_name: palette-setup
784+
---
785+
786+
This is how you set up Palette in {props.cloud}.
787+
788+
This is an <VersionedLink text="Internal Link" url="/getting-started/additional-capabilities"/>.
789+
```
790+
791+
The path of the link should be the path of the destination file from the root directory, without any back operators
792+
`..`. External links can be referenced as usual.
793+
794+
### Palette/VerteX URLs
795+
796+
The component [PaletteVertexUrlMapper](./src/components/PaletteVertexUrlMapper/PaletteVertexUrlMapper.tsx) handles the
797+
generation of URLs for Palette and VerteX documents within the `/self-hosted-setup` section. This component is used
798+
within partials to change the base path of the URL to either `/self-hosted-setup/palette` or `/self-hosted-setup/vertex`
799+
and, if applicable, point to a particular installation method. The component has the following props:
800+
801+
- `edition` - The edition of the URL. This can be either `palette` or `vertex`. The component uses this value to
802+
determine the base URL. Values are _not_ case sensitive.
765803
- `text` - The text to display for the link.
766804
- `url` - The path to append to the base URL.
805+
- To redirect to the base `/self-hosted-setup/palette` or `/self-hosted-setup/vertex` URL, use `url=""`.
806+
- When referencing a heading or anchor within a file, append `/#anchor-here` to the end of the file path. For example,
807+
use `url="/system-management/account-management/#system-administrators`. Note that adding `/` after the anchor
808+
allows the link to work but does not route to the correct header.
767809
768-
Below is an example of how to use the component:
810+
Below is an example of how to use the component within a partial:
769811
770812
```mdx
771813
- System administrator permissions, either a Root Administrator or Operations Administrator. Refer to the
772814
<PaletteVertexUrlMapper
773815
edition={props.edition}
774-
text="System Administrators"
816+
text="Account Management"
775817
url="/system-management/account-management"
776818
/>
777819
page to learn more about system administrator roles.
778820
```
779821
822+
When referencing the `PartialsComponent` in the `.md` file, the `edition` determines if the link maps to a Palette or
823+
VerteX page. In the below example, because the `edition` is defined as `palette`, the resulting link is
824+
`/self-hosted-setup/palette/system-management/account-management`. If the `edition` used was `vertex`, the resulting
825+
link would be `/self-hosted-setup/vertex/system-management/account-management`.
826+
827+
```md
828+
<PartialsComponent>
829+
category="self-hosted"
830+
name="customize-interface"
831+
edition="palette"
832+
/>
833+
```
834+
835+
#### Different Palette/VerteX URLs
836+
780837
In cases where Palette and Vertex pages have different URLs beyond the base path, the component will accept the
781838
following props:
782839
783-
- `edition` - The edition of the URL. This can be either `Palette` or `Vertex`. Internally, the component will use this
784-
value to determine the base URL.
840+
- `edition` - The edition of the URL. This can be either `palette` or `vertex`. The component uses this value to
841+
determine whether to route the link to the defined `palettePath` or `vertexPath`.
785842
- `text` - The text to display for the link.
786-
- `palettePath` - The Palette path to append to the base URL.
787-
- `vertexPath` - The VerteX path to append to the base URL.
843+
- `palettePath` - The full self-hosted Palette path. Using `palettePath` prevents the base URL `/self-hosted-setup/`
844+
from being appended; therefore, you must use the full path.
845+
- When referencing a heading or anchor within a file, append `/#anchor-here` to the end of the file path.
846+
- `vertexPath` - The full self-hosted Palette VerteX path. Using `vertexPath` prevents the base URL
847+
`/self-hosted-setup/` from being appended; therefore, you must use the full path.
848+
- When referencing a heading or anchor within a file, append `/#anchor-here` to the end of the file path.
788849
789850
Below is an example of how to use the component when the URLs are different:
790851
791852
```mdx
792853
- System administrator permissions, either a Root Administrator or Operations Administrator. Refer to the
793854
<PaletteVertexUrlMapper
794855
edition={props.edition}
795-
text="System Administrators"
856+
text="Account Management"
796857
palettePath="/system-management/account-management"
797858
vertexPath="/system-management-vertex/account-management"
798859
/>
799860
page to learn more about system administrator roles.
800861
```
801862
863+
When referencing the `PartialsComponent` in the `.md` file, the resulting links would be
864+
`/self-hosted-setup/palette/system-management/account-management` and
865+
`/self-hosted-setup/vertex/system-management-vertex/account-management` (based on the `edition` used).
866+
867+
#### Installation-Specific URLs
868+
869+
The `PaletteVertexUrlMapper` component also supports the optional `install` prop for handling installation-specific URLs
870+
for self-hosted Palette and Palette VerteX.
871+
872+
- `install` - The installation method. Can be `kubernetes`, `vmware`, or `management-appliance`. When provided, the
873+
component appends `/supported-environments/{install-method}` to the base URL path. Values are _not_ case sensitive.
874+
875+
When the `install` prop is provided, the URL is constructed as follows:
876+
877+
```
878+
/self-hosted-setup/{edition}/supported-environments/{install-method}/{url}
879+
```
880+
881+
Below is an example of how to use the component with the `install` prop within the partial `.mdx` file:
882+
883+
```md
884+
- To activate your installation, refer to the <PaletteVertexUrlMapper
885+
edition={props.edition}
886+
install={props.install}
887+
text="activation guide"
888+
url="/activate"
889+
/>.
890+
```
891+
892+
When referencing the `PartialsComponent` in the `.md` file in the below example, the resulting link would be
893+
`/self-hosted-setup/palette/supported-environments/vmware/activate`.
894+
895+
```md
896+
<PartialsComponent
897+
category="self-hosted"
898+
name="install-next-steps"
899+
install="vmware"
900+
edition="Palette"
901+
/>
902+
```
903+
802904
## Security Bulletins
803905
804906
The security bulletins are auto-generated upon server start or the build process. The bulletins are generated by

_partials/_azure-cloud-account-setup.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ Use the following steps to add an Azure or Azure US Government account in Palett
77

88
:::warning
99

10-
<!-- prettier-ignore-start --> Beginning with Palette version 4.6.36, a <VersionedLink text="Private Cloud Gateway (PCG)" url="/clusters/pcg"/> is required to add an [Azure US Government](https://azure.microsoft.com/en-us/explore/global-infrastructure/government) cloud account.
10+
<!-- prettier-ignore-start -->
1111

12-
If you are using a <VersionedLink text="self-hosted Palette" url="/enterprise-version/enterprise-version"/> or <VersionedLink text="VerteX" url="/vertex/vertex"/> instance, a PCG is not required unless you configure both an Azure Public Cloud and Azure US Government account on the same installation. If you do not configure a PCG, you must install two instances of Palette or VerteX: one for Azure Public Cloud clusters and one for Azure US Government clusters. <!-- prettier-ignore-end -->
12+
Beginning with Palette version 4.6.36, a <VersionedLink text="Private Cloud Gateway (PCG)" url="/clusters/pcg"/> is required to add an [Azure US Government](https://azure.microsoft.com/en-us/explore/global-infrastructure/government) cloud account.
13+
14+
If you are using a <VersionedLink text="self-hosted Palette" url="/self-hosted-setup/palette/" /> or <VersionedLink text="Palette VerteX" url="/self-hosted-setup/vertex/" /> instance, a PCG is not required unless you configure both an Azure Public Cloud and Azure US Government account on the same installation. If you do not configure a PCG, you must install two instances of Palette or VerteX: one for Azure Public Cloud clusters and one for Azure US Government clusters.
15+
16+
<!-- prettier-ignore-end -->
1317

1418
:::
1519

_partials/cluster-templates/_profile-vs-template.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ or a single <VersionedLink text="cluster template" url="/cluster-templates" />.
1010

1111
:::info
1212

13-
<VersionedLink text="Cluster templates" url="/cluster-templates" /> are a Tech Preview feature and can be used only if the **ClusterTemplates** <VersionedLink text="feature flag" url="/enterprise-version/system-management/feature-flags/" /> is enabled.
13+
<VersionedLink text="Cluster templates" url="/cluster-templates" /> are a Tech Preview feature and can be used only if the **ClusterTemplates** <VersionedLink text="feature flag" url="/self-hosted-setup/palette/system-management/feature-flags/" /> is enabled.
1414

1515
:::
1616

_partials/self-hosted/_install-next-steps.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ Now that you have installed {props.version}, you can either
1111
/> to host your users and set up your clusters, or you can
1212
<PaletteVertexUrlMapper
1313
edition={props.edition}
14+
install={props.install}
1415
text="activate your installation"
15-
url="/activate-installation"
16+
url="/activate"
1617
/> .
1718

1819
Beginning with version 4.6.32, once you install {props.version}, you have 30 days to activate it; versions older than 4.6.32 do not need to be activated. During the 30-day trial period, you can use {props.version} without any restrictions. After 30 days, you can continue to use {props.version}, but you cannot deploy additional clusters or perform any day-2 operations on existing clusters until {props.version} is activated. Each installation of {props.version} must be activated separately. We recommend activating {props.version} as soon as possible to avoid any disruptions.

_partials/self-hosted/_setup-steps.mdx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ partial_name: setup-steps
55

66
## Prerequisites
77

8-
- An RHEL airgap VM deployed in your VMware vSphere. The VM must be registered with
8+
- An RHEL airgap VM deployed in VMware vSphere. The VM must be registered with
99
[Red Hat](https://access.redhat.com/solutions/253273) and have ports `80` and `443` available. This guide uses RHEL
1010
version `9.4` as an example.
1111

@@ -31,9 +31,9 @@ partial_name: setup-steps
3131

3232
:::
3333

34-
- Review the required vSphere <VersionedLink text="permissions" url="/enterprise-version/install-palette/install-on-vmware/vmware-system-requirements/" /> and ensure you have
34+
- Review the required vSphere <PaletteVertexUrlMapper text="permissions" edition={props.edition} url="/supported-environments/vmware/setup/airgap/vmware-system-requirements/" /> and ensure you have
3535
created the proper custom roles and zone tags. Zone tagging enables dynamic storage allocation across fault domains
36-
when provisioning workloads that require persistent storage. Refer to <VersionedLink text="Zone Tagging" url="/enterprise-version/install-palette/install-on-vmware/vmware-system-requirements/" /> for information.
36+
when provisioning workloads that require persistent storage. Refer to <PaletteVertexUrlMapper text="Zone Tagging" edition={props.edition} url="/supported-environments/vmware/setup/airgap/vmware-system-requirements/#zone-tagging" /> for information.
3737

3838
- The following artifacts must be available in the root home directory of the RHEL airgap VM. You can download the files
3939
in a system with internet access and then transfer them to your airgap environment. Contact your {props.edition} support
@@ -54,8 +54,6 @@ partial_name: setup-steps
5454
distribution OVA required for the {props.edition} nodes creation. Refer to the
5555
<VersionedLink text="Kubernetes Requirements" url={props.requirementsURL} /> section to learn if the version of
5656
{props.edition} you are installing requires a new OS and Kubernetes OVA.
57-
58-
{props.requirementsURL}
5957

6058
<Tabs>
6159
<TabItem value="non-fips" label="Non-FIPS">
@@ -77,7 +75,8 @@ partial_name: setup-steps
7775
Place the OVA in the **spectro-templates** folder. Append the `r_` prefix, and remove the `.ova` suffix when
7876
assigning its name and target location. For example, the final output should look like `r_u-2204-0-k-1294-0`. This
7977
naming convention is required for the installation process to identify the OVA. Refer to the
80-
<VersionedLink text="Additional Packs" url="/enterprise-version/install-palette/airgap/supplemental-packs/" /> page for a list of additional OS and
78+
<PaletteVertexUrlMapper text="Additional Packs" edition={props.edition} palettePath="/downloads/self-hosted-palette/additional-packs/"
79+
vertexPath="/downloads/palette-vertex/additional-packs/" /> page for a list of additional OS and
8180
Kubernetes OVAs.
8281

8382
You can terminate the deployment after the OVA is available in the `spectro-templates` folder. Refer to the
@@ -303,7 +302,7 @@ partial_name: setup-steps
303302
systemctl restart httpd.service
304303
```
305304

306-
20. Review the <PaletteVertexUrlMapper edition={props.edition} text="Additional Packs" palettePath="/install-palette/airgap/supplemental-packs/" vertexPath="/install-palette-vertex/airgap/supplemental-packs/" /> page and identify any additional packs you want
305+
20. Review the <PaletteVertexUrlMapper edition={props.edition} text="Additional Packs" palettePath="/downloads/self-hosted-palette/additional-packs/" vertexPath="/downloads/palette-vertex/additional-packs/" /> page and identify any additional packs you want
307306
to add to your registry. You can also add additional packs after the installation is complete.
308307

309308
You have now completed the preparation steps for an airgap installation. Check out the [Validate](#validate) section to
@@ -398,7 +397,7 @@ command below to start the installation.
398397
palette ec install
399398
```
400399

401-
Complete all the Palette CLI steps outlined in the <VersionedLink text="Install" url="/enterprise-version/install-palette/install-on-vmware/airgap-install/install/" /> guide from the RHEL VM.
400+
Complete all the Palette CLI steps outlined in the <PaletteVertexUrlMapper edition={props.edition} text="Install" url="/supported-environments/vmware/install/airgap/" /> guide from the RHEL VM.
402401

403402
:::info
404403

_partials/self-hosted/_size_guidelines.mdx renamed to _partials/self-hosted/_size_guidelines-helm-cli.mdx

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
partial_category: self-hosted
3-
partial_name: size-guidelines
3+
partial_name: size-guidelines-helm-cli
44
---
55

66
This section lists resource requirements for {props.edition} for various capacity levels. In {props.edition}, the terms _small_,
@@ -20,30 +20,12 @@ active nodes and pods at any given time.
2020

2121
<br />
2222

23-
<Tabs>
24-
25-
<TabItem label="Palette CLI or Helm Chart" value="palette-cli-or-helm-chart">
26-
2723
| **Size** | **Total Nodes** | **Node CPU** | **Node Memory** | **Node Storage** | **MongoDB Node Storage Limit** | **MongoDB Node Memory Limit** | **MongoDB Node CPU Limit** | **Total Deployed Workload Cluster Nodes** | **Deployed Clusters with 10 Nodes** |
2824
| -------------------- | --------- | ------- | ---------- | ----------- | ------------------------- | ------------------------ | --------------------- | ------------------------ | ----------------------------------- |
2925
| Small | 3 | 8 | 16 GB | 60 GB | 20 GB | 4 GB | 2 | 1000 | 100 |
3026
| Medium (Recommended) | 3 | 16 | 32 GB | 100 GB | 60 GB | 8 GB | 4 | 3000 | 300 |
3127
| Large | 3 | 32 | 64 GB | 120 GB | 80 GB | 12 GB | 6 | 5000 | 500 |
3228

33-
</TabItem>
34-
35-
<TabItem label="Management Appliance" value="management-appliance">
36-
37-
| **Size** | **Total Nodes** | **Node CPU** | **Node Memory** | **Node Storage (Total)** | **Total Deployed Workload Cluster Nodes** | **Deployed Clusters with 10 Nodes** |
38-
| -------------------- | --------------- | ------------ | --------------- | ------------------------ | ----------------------------------------- | ----------------------------------- |
39-
| Small | 3 | 8 | 16 GB | 750 GB | 1000 | 100 |
40-
| Medium (Recommended) | 3 | 16 | 32 GB | 750 GB | 3000 | 300 |
41-
| Large | 3 | 32 | 64 GB | 750 GB | 5000 | 500 |
42-
43-
</TabItem>
44-
45-
</Tabs>
46-
4729
:::info
4830

4931
The Spectro manifest requires approximately 10 GB of storage. {props.edition} deployed clusters use the manifest to identify what images to pull for each microservice that makes up {props.edition}.

0 commit comments

Comments
 (0)