Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update vale #2847

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .github/workflows/docs-vale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- "docs/**"

jobs:
prose:
vale:
runs-on: ubuntu-22.04
steps:
- name: Checkout
Expand All @@ -21,11 +21,7 @@ jobs:
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}

- name: Vale
uses: errata-ai/vale-action@c4213d4de3d5f718b8497bd86161531c78992084 # tag=v2.0.1
uses: errata-ai/vale-action@3f7188c866bcb3259339a09f517d7c4a8838303c # tag=reviewdog
with:
version: 2.17.0
files: docs/docs
env:
# Required, set by GitHub actions automatically:
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
fail_on_error: true
8 changes: 2 additions & 6 deletions .vale.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
StylesPath = docs/styles
Vocab = constellation

# IgnoredScopes specifies inline-level HTML tags to ignore.
# These tags may occur in an active scope (unlike SkippedScopes, skipped entirely) but their content still will not raise any alerts.
# Default: ignore `code` and `tt`.
IgnoredScopes = code, tt, img
Vocab = edgeless

[*.md]
BasedOnStyles = Vale, Microsoft, Google
Vale.Terms = NO

# decrease to suggestion
Microsoft.Foreign = suggestion # conflicts with Microsoft.Contractions
Expand Down
8 changes: 4 additions & 4 deletions docs/docs/workflows/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,20 @@ Constellation supports the following VM types:
<tabs groupId="csp">
<tabItem value="azure" label="Azure">

By default, Constellation uses `Standard_DC4as_v5` CVMs (4 vCPUs, 16 GB RAM) to create your cluster. Optionally, you can switch to a different VM type by modifying **instanceType** in the configuration file. For CVMs, any VM type with a minimum of 4 vCPUs from the [DCasv5 & DCadsv5](https://docs.microsoft.com/en-us/azure/virtual-machines/dcasv5-dcadsv5-series) or [ECasv5 & ECadsv5](https://docs.microsoft.com/en-us/azure/virtual-machines/ecasv5-ecadsv5-series) families is supported.
By default, Constellation uses `Standard_DC4as_v5` CVMs (4 vCPUs, 16 GB RAM) to create your cluster. Optionally, you can switch to a different VM type by modifying `instanceType` in the configuration file. For CVMs, any VM type with a minimum of 4 vCPUs from the [DCasv5 & DCadsv5](https://docs.microsoft.com/en-us/azure/virtual-machines/dcasv5-dcadsv5-series) or [ECasv5 & ECadsv5](https://docs.microsoft.com/en-us/azure/virtual-machines/ecasv5-ecadsv5-series) families is supported.

You can also run `constellation config instance-types` to get the list of all supported options.

</tabItem>
<tabItem value="gcp" label="GCP">

By default, Constellation uses `n2d-standard-4` VMs (4 vCPUs, 16 GB RAM) to create your cluster. Optionally, you can switch to a different VM type by modifying **instanceType** in the configuration file. Supported are all machines with a minimum of 4 vCPUs from the [C2D](https://cloud.google.com/compute/docs/compute-optimized-machines#c2d_machine_types) or [N2D](https://cloud.google.com/compute/docs/general-purpose-machines#n2d_machines) family. You can run `constellation config instance-types` to get the list of all supported options.
By default, Constellation uses `n2d-standard-4` VMs (4 vCPUs, 16 GB RAM) to create your cluster. Optionally, you can switch to a different VM type by modifying `instanceType` in the configuration file. Supported are all machines with a minimum of 4 vCPUs from the [C2D](https://cloud.google.com/compute/docs/compute-optimized-machines#c2d_machine_types) or [N2D](https://cloud.google.com/compute/docs/general-purpose-machines#n2d_machines) family. You can run `constellation config instance-types` to get the list of all supported options.

</tabItem>
<tabItem value="aws" label="AWS">

By default, Constellation uses `m6a.xlarge` VMs (4 vCPUs, 16 GB RAM) to create your cluster.
Optionally, you can switch to a different VM type by modifying **instanceType** in the configuration file.
Optionally, you can switch to a different VM type by modifying `instanceType` in the configuration file.
If you are using the default attestation variant `awsSEVSNP`, you can use the instance types described in [AWS's AMD SEV-SNP docs](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snp-requirements.html).
Please mind the region restrictions mentioned in the [Getting started](../getting-started/first-steps.md#create-a-cluster) section.

Expand All @@ -70,7 +70,7 @@ The Constellation CLI can also print the supported instance types with: `constel
</tabItem>
</tabs>

Fill the desired VM type into the **instanceType** fields in the `constellation-conf.yml` file.
Fill the desired VM type into the `instanceType` fields in the `constellation-conf.yml` file.

## Creating additional node groups

Expand Down
12 changes: 0 additions & 12 deletions docs/styles/Google/OptionalPlurals.yml

This file was deleted.

4 changes: 3 additions & 1 deletion docs/styles/Google/Spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ ignorecase: true
level: warning
tokens:
- '(?:\w+)nised?'
- '(?:\w+)logue'
- 'colour'
- 'labour'
- 'centre'
6 changes: 3 additions & 3 deletions docs/styles/Google/Units.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
extends: existence
message: "Put a nonbreaking space between the number and the unit in '%s'."
link: 'https://developers.google.com/style/units-of-measure'
link: "https://developers.google.com/style/units-of-measure"
nonword: true
level: error
tokens:
- \d+(?:B|kB|MB|GB|TB)
- \d+(?:ns|ms|s|min|h|d)
- \b\d+(?:B|kB|MB|GB|TB)
- \b\d+(?:ns|ms|s|min|h|d)
2 changes: 1 addition & 1 deletion docs/styles/Microsoft/Contractions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ swap:

should not: shouldn't

'that is(?!\.)': that's
"that is(?![.,])": that's
'that''s(?=\.)': that is

'they are(?!\.)': they're
Expand Down
3 changes: 2 additions & 1 deletion docs/styles/Microsoft/Foreign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ action:
swap:
'\b(?:eg|e\.g\.)[\s,]': for example
'\b(?:ie|i\.e\.)[\s,]': that is

'\b(?:viz\.)[\s,]': namely
'\b(?:ergo)[\s,]': therefore
7 changes: 7 additions & 0 deletions docs/styles/Microsoft/Plurals.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
extends: existence
message: "Don't add '%s' to a singular noun. Use plural instead."
ignorecase: true
level: error
link: https://learn.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/s/s-es
raw:
- '\(s\)|\(es\)'
10 changes: 4 additions & 6 deletions docs/styles/Microsoft/Terms.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
extends: substitution
message: "Prefer '%s' over '%s'."
# term preference should be based on microsoft style guide, such as
link: https://learn.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/a/adapter
level: warning
ignorecase: true
action:
Expand All @@ -24,10 +26,8 @@ swap:
anti-spyware: antispyware
anti-virus: antivirus
appendixes: appendices
artificial intelligence: artificial intelligence
assembler: assembly language
bpp: bpp
bps: bps
artificial intelligence: AI
'(?:assembler|machine language)': assembly language
caap: CaaP
conversation-as-a-platform: conversation as a platform
eb: EB
Expand All @@ -39,5 +39,3 @@ swap:
pb: PB
tb: TB
zb: ZB
viz: namely
ergo: therefore
Original file line number Diff line number Diff line change
Expand Up @@ -2,69 +2,81 @@ Affero
agent
Ansys
Asciinema
ASG
auditable
autoscaler
[Aa]utoscaling
autoscaling
AWS
aws
backend
Bazel
benchmarked
[Bb]ootloader
bootloader
Bootstrapper
[Cc]loud
cloud
config
CPU
CRD
CSP
cyber
datacenter
Datadog
deallocate
DEK
Dockerfile
Dynatrace
[Ee]mojivoto
Emojivoto
etcd
Filebeat
Filestash
Filestore
filesystem
Fluentd
frontend
Fulcio
Mbps
Gbps
GCP
gcp
Grype
iam
IAM
iodepth
initramfs
iodepth
IPSec
journald
[Kk]3s
Kata
KEK
KMS
kubeadm
kubectl
kubelet
libcryptsetup
Logstash
Mbps
MicroK8s
[Mm]inikube
namespace
Nginx
[Pp]laintext
PCR
plaintext
proxied
QEMU
Rekor
resizable
resourceGroup
rollout
SBOM
sigstore
[Ss]uperset
SSD
superset
Syft
systemd
Terraform
Tink
[Uu]nencrypted
TPM
unencrypted
unspoofable
updatable
UUID
proxied
QEMU
vCPU
virsh
[Ww]alkthrough
VM
walkthrough
whitepaper
WireGuard
Xeon
Expand Down