From 73007ad6b753bc5aae63a346f631a7904a2377f3 Mon Sep 17 00:00:00 2001 From: addetz <43963729+addetz@users.noreply.github.com> Date: Wed, 16 Oct 2024 14:12:18 +0100 Subject: [PATCH] docs: add new numbers rule DOC-1107 --- .../styles/spectrocloud/numbers.yml | 17 ++++++++++++++++ packages/spectrocloud/tests/numbers/.vale.ini | 4 ++++ packages/spectrocloud/tests/numbers/fail.md | 13 ++++++++++++ packages/spectrocloud/tests/numbers/pass.md | 20 +++++++++++++++++++ 4 files changed, 54 insertions(+) create mode 100644 packages/spectrocloud/styles/spectrocloud/numbers.yml create mode 100644 packages/spectrocloud/tests/numbers/.vale.ini create mode 100644 packages/spectrocloud/tests/numbers/fail.md create mode 100644 packages/spectrocloud/tests/numbers/pass.md diff --git a/packages/spectrocloud/styles/spectrocloud/numbers.yml b/packages/spectrocloud/styles/spectrocloud/numbers.yml new file mode 100644 index 0000000..d3e9638 --- /dev/null +++ b/packages/spectrocloud/styles/spectrocloud/numbers.yml @@ -0,0 +1,17 @@ +# Copyright (c) Spectro Cloud +# SPDX-License-Identifier: Apache-2.0 + +extends: existence +message: "Spell out numbers zero through nine. You mentioned '%s'." +link: "https://spectrocloud.atlassian.net/wiki/spaces/DE/pages/1765933057/Spectro+Cloud+Internal+Style+Guide#Numbers" +ignorecase: true +level: error +nonword: false +scope: sentence +tokens: + - '\b([0-9]/[0-9])\b' + - '\b([0-9])\b' + - '\b(1st)\b' + - '\b(2nd)\b' + - '\b(3rd)\b' + - '\b([0-9]th)\b' diff --git a/packages/spectrocloud/tests/numbers/.vale.ini b/packages/spectrocloud/tests/numbers/.vale.ini new file mode 100644 index 0000000..b678568 --- /dev/null +++ b/packages/spectrocloud/tests/numbers/.vale.ini @@ -0,0 +1,4 @@ +StylesPath = ../../styles/ +MinAlertLevel = suggestion +[*.md] +spectrocloud.numbers = YES \ No newline at end of file diff --git a/packages/spectrocloud/tests/numbers/fail.md b/packages/spectrocloud/tests/numbers/fail.md new file mode 100644 index 0000000..c88c12a --- /dev/null +++ b/packages/spectrocloud/tests/numbers/fail.md @@ -0,0 +1,13 @@ +## Backup Scheduling Options + +Both the cluster and workspace backup support the following scheduling options: + +- Customize your backup for the exact month, day, hour, and minute of the user's choice. +- Every week on Sunday at midnight. +- Every 2 weeks at midnight. +- Every month on the 1st at midnight. +- Every two months on the 2nd at midnight. +- Every two months on the 3rd at midnight. +- Every two months on the 4th at midnight. +- On the 0 minute of the hour. +- Every 1/2 hour. \ No newline at end of file diff --git a/packages/spectrocloud/tests/numbers/pass.md b/packages/spectrocloud/tests/numbers/pass.md new file mode 100644 index 0000000..b2df5c5 --- /dev/null +++ b/packages/spectrocloud/tests/numbers/pass.md @@ -0,0 +1,20 @@ +## Create Infrastructure Profile + +1. Log in to [Palette](https://console.spectrocloud.com/). + +2. From the left **Main Menu** click **Profiles**. + +3. Click on the **Add Cluster Profile** button. + +4. Fill out the following input values and ensure you select **Infrastructure** for the type. Click on **Next** to + continue. + + | **Field** | **Description** | + | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | + | **Name** | A custom name for the profile. | + | **Version** | You only need to specify a version if you create multiple versions of a profile using the same profile name. Default: `1.0.0`. | + | **Description** | Use the description to provide context about the profile. | + | **Type** | **Infrastructure** | + | **Tags** | Assign any desired profile tags. Tags propagate to the Virtual Machines (VMs) deployed in the cloud or data center environment when clusters are created from this cluster profile. Example: `owner` or `region`. | + +5. You should have 10 layers in your profile. \ No newline at end of file