Skip to content

Commit

Permalink
Merge branch 'master' into add-migrate-vm-doc-830
Browse files Browse the repository at this point in the history
  • Loading branch information
addetz authored Sep 11, 2024
2 parents f7c369c + b177465 commit e888a1f
Show file tree
Hide file tree
Showing 87 changed files with 4,701 additions and 3,030 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nightly-docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
tags: ghcr.io/${{ github.repository }}:nightly
labels: ${{ steps.meta.outputs.labels }}

- uses: sigstore/cosign-installer@v3.5.0
- uses: sigstore/cosign-installer@v3.6.0

- name: Image Signing
run: |
Expand Down
21 changes: 19 additions & 2 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,20 @@ jobs:
needs: [run-ci]
runs-on: ubuntu-latest
steps:
- name: Retrieve Credentials
id: import-secrets
uses: hashicorp/[email protected]
with:
url: https://vault.prism.spectrocloud.com
method: approle
roleId: ${{ secrets.VAULT_ROLE_ID }}
secretId: ${{ secrets.VAULT_SECRET_ID }}
secrets: /providers/github/organizations/spectrocloud/token?org_name=spectrocloud token | VAULT_GITHUB_TOKEN

- name: Checkout Repository
uses: actions/checkout@v4
with:
token: ${{ steps.import-secrets.outputs.VAULT_GITHUB_TOKEN }}

- name: Setup Node.js environment
uses: actions/setup-node@v4
Expand All @@ -57,8 +69,13 @@ jobs:

- run: npm ci

- name: Prettier Check
run: npx prettier . --check
- name: Auto Format (Prettier)
run: make format

- name: Commit Changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "ci: auto-formatting prettier issues"

build:
name: Build
Expand Down
93 changes: 53 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -472,41 +472,53 @@ Result
### Admonitions - Warning / Info / Tip / Danger / Tech Preview / Further Guidance
```mdx
:::warning
Some **content** with _Markdown_ `syntax`.
:::
```
```mdx
:::info
Some **content** with _Markdown_ `syntax`.
:::
```
```mdx
:::tip
Some **content** with _Markdown_ `syntax`.
:::
```
```mdx
:::danger
Some **content** with _Markdown_ `syntax`.
:::
```
```mdx
:::preview
Some **content** with _Markdown_ `syntax`.
:::
```
```mdx
:::further
Some **content** with _Markdown_ `syntax`.
:::
```
https://docusaurus.io/docs/markdown-features/admonitions
Expand All @@ -519,11 +531,11 @@ For guidance on using admonitions, refer to
To add a video, use the following syntax. Ensure you capitalize the letter "V":
```
```mdx
<Video src="/aws-full-profile.mp4"></Video>
```
```
```mdx
<Video title="vsphere-pcg-creation" src="/cluster-creation-videos/vmware.mp4"></Video>
```
Expand Down Expand Up @@ -720,6 +732,29 @@ This is a <VersionedLink text="Internal Link" url="/getting-started/additional-c
The path of the link should be the path of the destination file from the root directory, without any back operators
`..`. External links can be referenced as usual.
## Palette/VerteX URLs
A special component has been created to handle the generation of URLs for Palette and VertX. The component is called
[PaletteVertexUrlMapper](./src/components/PaletteVertexUrlMapper/PaletteVertexUrlMapper.tsx). This component is intended
for usage withing partials. You can use the component to change the base path of the URL to either Palette or VerteX.
The component will automatically prefix the path to the URL. The component has the following props:
- `edition` - The edition of the URL. This can be either `Palette` or `Vertex`. Internally, the component will use this
value to determine the base URL.
- `text` - The text to display for the link.
- `url` - The path to append to the base URL.
Below is an example of how to use the component:
```mdx
- System administrator permissions, either a Root Administrator or Operations Administrator. Refer to the
<PaletteVertexUrlMapper
edition={props.edition}
text="System Administrators"
url="/system-management/account-management"
/> page to learn more about system administrator roles.
```
## Packs Component
The packs component is a custom component that displays all packs available in Palette SaaS by querying the Palette API
Expand Down Expand Up @@ -820,8 +855,11 @@ If you want to link to a heading inside the pack component, you must also use th
path to the component followed by the heading id. The following is an example of how to link to a heading inside the
pack component. Take note of the `#` symbol followed by the heading id.
```md
<VersionedLink text="Change Cluster DNS Service Domain" url="/integrations/packs/?pack=kubernetes-eks#change-cluster-dns-service-domain" />
```mdx
<VersionedLink
text="Change Cluster DNS Service Domain"
url="/integrations/packs/?pack=kubernetes-eks#change-cluster-dns-service-domain"
/>
```
Omit the `version=xxxx&parent=xxxx` value that is part of the query string. If you include the `version` and `parent`
Expand All @@ -832,7 +870,7 @@ values, the link will not work as expected.
You must use the `<VersionedLink />` component to link to a pack. The following is an example of how to link to a pack.
For more information, refer to the [Internal Links](#internal-links) section.
```md
```mdx
<VersionedLink text="Change Cluster DNS Service Domain" url="/integrations/packs/?pack=kubernetes-eks" />
```
Expand Down Expand Up @@ -862,20 +900,16 @@ documentation.
Next, download the required Vale plugins.
```
```shell
make sync-vale
```
To execute the writing check, issue the command below. The command below will identify files that are modified by
comparing the current git branch against the `master` branch. Ensure your local `master` branch is up to date for
accurate results.
```
```shell
make check-writing
```
You may also use the Vale CLI to directly scan a file and receive feedback.
Expand All @@ -886,31 +920,10 @@ Example:
vale content/docs/08-user-management.md
```
## Modify Writing Rules
The [vale.ini](vale.ini) file contains the configuration for Vale. Changes to [vale.ini](vale.ini),
[accept.txt](/vale/styles/Vocab/Internal/accept.txt), and [reject.txt](/vale/styles/Vocab/Internal/reject.txt) require
approval by the [docs-education](https://github.com/orgs/spectrocloud/teams/docs-education) team.
## Vale
### Disable Rule
To disable a specific rule, add the rule name and the word "NO" to the vale.ini](vale.ini) file.
Example:
```
Google.Headings = NO
```
### Approved Words
Approved words can be found in the [accept.txt](/vale/styles/Vocab/Internal/accept.txt) file. You can add or remove
words from the list by modifying the file.
### Rejected Words
Rejected words automatically get flagged by Vale. To modify the list of rejected words, modify the
[reject.txt](/vale/styles/Vocab/Internal/reject.txt) file.
The [vale.ini](vale.ini) file contains the configuration for Vale. We use the
[Spectro Cloud Vale](https://github.com/spectrocloud/spectro-vale-pkg) package to enforce our writing style.
## Check Formatting
Expand All @@ -920,32 +933,32 @@ the formatting in all files complies with our Prettier configuration.
> [!NOTE]
>
> The build fails if the Code Formatting check doesn't pass.
> The CI will automatically format the files and commit the changes, if necessary.
To manually check the formatting before pushing your work upstream, execute the following command in your terminal:
```
```shell
make format-check
```
Console output if all files are formatted:
```
```shell
Checking formatting...
All matched files use Prettier code style!
```
Console output if some of the files require re-formatting:
```
```shell
Checking formatting...
[warn] README.md
[warn] Code style issues found in the above file. Run Prettier to fix.
```
To manually format all files, issue the following command:
```
```shell
make format
```
Expand Down
22 changes: 6 additions & 16 deletions _partials/feature_flags/_feature_flags_overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ partial_category: feature-flags
partial_name: feature-flags-overview
---



<!-- prettier-ignore -->
Feature flags allow <PaletteURL text="system administrators" edition={props.edition} url="/system-management/account-management/#system-administrators" /> to
Feature flags allow <PaletteVertexUrlMapper text="system administrators" edition={props.edition} url="/system-management/account-management/#system-administrators" /> to
manage what features are available to the system's tenants. They can use this capability to roll out new features to {props.edition} tenants in a controlled manner or choose not to implement a feature for their tenants due to security or compliance reasons.

Features enabled by system administrators are applied to all tenants in the system. Once a feature is enabled, it cannot
Expand All @@ -31,9 +33,9 @@ Use the following steps to enable a feature flag.

## Enablement

<!-- prettier-ignore -->

1. Log in to the system console. For additional guidance on accessing the system console, check out the
<PaletteURL
<PaletteVertexUrlMapper
edition={props.edition}
text="Access the System Console"
url="/system-management/#access-the-system-console"
Expand All @@ -53,16 +55,4 @@ Use the following steps to validate that the feature flag is enabled.
1. Log in as a tenant administrator to one of the tenants in the system.

2. Attempt to access the enabled feature flag. If the feature is enabled, you will be able to use it. If the feature is
disabled, you will not be able to access it.

export function PaletteURL({ edition, text, url }) {
return (
<>
{edition.toLowerCase() === "palette" ? (
<VersionedLink text={text} url={`/enterprise-version${url}`} />
) : (
<VersionedLink text={text} url={`/vertex${url}`} />
)}
</>
);
}
disabled, you will not be able to access it.
Loading

0 comments on commit e888a1f

Please sign in to comment.