diff --git a/.github/workflows/vale.yml b/.github/workflows/vale.yml index 192f17b1108..ca7aa0538d8 100644 --- a/.github/workflows/vale.yml +++ b/.github/workflows/vale.yml @@ -74,7 +74,7 @@ jobs: { echo "## Vale errors and warnings in changed files" echo - echo "Note: The Vale Comments workflow posts review comments only for errors on lines this PR changed. This table lists all errors and warnings in the changed files." + echo "Note: The Vale Comments workflow posts review comments only for errors, only on lines this PR changed. This table lists all errors and warnings throughout the changed files." echo echo "| File | Line | Severity | Rule | Message |" echo "| --- | --- | --- | --- | --- |" diff --git a/.vale.ini b/.vale.ini index 2b5b2dde7c7..f8fba275463 100644 --- a/.vale.ini +++ b/.vale.ini @@ -17,8 +17,18 @@ BlockIgnores = (?s) *```(?:[\w\{\}]+)?$(.+?)^ *``` # Rules can use explicit scope lists (paragraph, heading, list, table, blockquote) to exclude this content TokenIgnores = (\A---\s*\n(.|\n)+?\n---\s*\n), (\{#[^\}]+\}), (\{\{[^\}]+\}\}) -# Markdown files use both Microsoft and custom Mendix styles -BasedOnStyles = Microsoft, Mendix +# Markdown files use Microsoft and custom Mendix styles, plus Vale's built-in rules +BasedOnStyles = Microsoft, Mendix, Vale + +# Spelling +# Replacement: Mendix.Spelling is a warning (the list of accepted words is still growing) and ignores plural acronyms such as APIs +# Accepted words are filters in Mendix.Spelling, not a Vale vocabulary, because vocabulary words also hide other rules' alerts +Vale.Spelling = NO + +# Vale's other built-in rules overlap with Microsoft and Mendix rules +Vale.Terms = NO +Vale.Avoid = NO +Vale.Repetition = NO # ============================================================================ # Microsoft Style Guide Rule Overrides @@ -47,7 +57,7 @@ Microsoft.Contractions = NO # Dashes # Microsoft removes all spaces around em/en dashes; Mendix has context-specific rules # Mendix style guide: Em dashes (—) have no spaces; en dashes (–) have spaces except in number ranges -# Replacement: Mendix.Dashes removes spaces around em dashes +# Replacement: Mendix.EmDashes removes spaces around em dashes # Mendix.ListIntroductions enforces en dashes (not em dashes or spaced hyphens) for list item introductions Microsoft.Dashes = NO @@ -89,8 +99,12 @@ Microsoft.Passive = NO Microsoft.Plurals = warning # Quotes -# Reduce severity to warning because punctuation is meant to be part of the quoted material in some technical writing use cases -Microsoft.Quotes = warning +# Reduce severity to suggestion because punctuation is meant to be part of the quoted material in some technical writing use cases +Microsoft.Quotes = suggestion + +# Semicolon +# Mendix does not discourage semicolons; Microsoft does +Microsoft.Semicolon = NO # Sentence Length # Raise the limit from 30 to 40 words because the default flags too many sentences @@ -102,10 +116,12 @@ Microsoft.Spacing = NO # Terms # Too far off from Mendix terminology guidance +# Replacement: Mendix.Terminology enforces Mendix-preferred terms Microsoft.Terms = NO # UIVerbs # Microsoft prefers "select" over "click" or "swipe"; Mendix does not +# Replacement: Mendix.Terminology prohibits "click on" in favor of "click" Microsoft.UIVerbs = NO # Uppercase @@ -127,11 +143,11 @@ Microsoft.Wordiness = NO # First-Person Plural # Release notes allow first-person plural "we" -[content/en/docs/releasenotes/*.md] +[**/content/en/docs/releasenotes/**/*.md] Microsoft.We = NO # Product Names # Disable deprecated product name checks in historical documentation # These versions used older terminology that may have been accurate at the time -[content/en/docs/{refguide8,refguide9,refguide10,howto8,howto9,howto10}/**/*.md] +[**/content/en/docs/{refguide8,refguide9,refguide10,howto8,howto9,howto10}/**/*.md] Mendix.ProductNames = NO \ No newline at end of file diff --git a/.vale/SETUP.md b/.vale/SETUP.md index 23b752e8dec..d4428b499bd 100644 --- a/.vale/SETUP.md +++ b/.vale/SETUP.md @@ -1,15 +1,13 @@ # Vale Setup Guide - - Vale is configured but needs to be installed locally before you can use it in VS Code. This guide walks you through setup. ## Why Install Locally? -* **Immediate feedback** - See violations as you write, not after pushing. -* **Faster iteration** - Fix issues before creating a PR. -* **More feedback** - See suggestions and warnings locally on the entire file; the GitHub Action is configured to show only errors on changed lines. -* **LLM integration** - If you're using Claude to edit locally, it picks up on issues flagged by Vale. +* **Immediate feedback** – See violations as you write, not after pushing. +* **Faster iteration** – Fix issues before creating a PR. +* **More feedback** – See suggestions and warnings locally on the entire file; the GitHub Action is configured to show only errors and warnings (not suggestions) on changed lines (not the entire file). +* **LLM integration** – If you're using Claude to edit locally, it picks up on issues flagged by Vale, which results in more consistent enforcement. You can also use Claude to efficiently evaluate and fix the flagged Vale issues. **Note:** Even without local installation, your PRs will be checked automatically by a GitHub Action: [.github/workflows/vale.yml](../.github/workflows/vale.yml). @@ -71,7 +69,7 @@ After installing Vale: - Restart VS Code. - Open any `.md` file in `content/en/docs/`. - Violations show as squiggly underlines in the file and appear in the **Problems** tab in the bottom pane. - - Many Vale rules support automatic fixes—hover over an underlined issue and click **Quick Fix** or click the lightbulb icon next to flagged text in the **Problems** tab. + - Many Vale rules support automatic fixes—hover over an underlined issue and click **Quick Fix** or click the light bulb icon next to flagged text in the **Problems** tab. - Save changes to rerun the linter. - If desired, you can adjust the extension's settings in VS Code to show a different minimum alert level. For example, if you set `minAlertLevel` to `warning`, it will report only warnings and errors, not suggestions. diff --git a/.vale/styles/Mendix/Acronyms.yml b/.vale/styles/Mendix/Acronyms.yml index 34ce7732abd..599de73a2b3 100644 --- a/.vale/styles/Mendix/Acronyms.yml +++ b/.vale/styles/Mendix/Acronyms.yml @@ -1,7 +1,6 @@ # Extends Microsoft.Acronyms (requires Vale 3.20 or later). # Ensures that the existence of 'first' implies the existence of 'second'. -# Link text is excluded from the scope (& ~link), so acronyms that appear only as link text aren't flagged. -# Known issue: Definitions inside link text aren't recognized, so later plain uses of the acronym are flagged +# Link text is excluded from the scope (& ~link), so acronyms that appear only as link text aren't flagged (but also aren't counted as definitions). extends: Microsoft.Acronyms message: "Define '%s' on first use." link: https://docs.mendix.com/community-tools/contribute-to-mendix-docs/style-guide/grammar-formatting/#acronyms-and-initialisms @@ -13,20 +12,45 @@ scope: - blockquote & ~link # Modified from Microsoft.Acronyms to accept sentence-case definitions (e.g., "personal access token (PAT)" not just "Personal Access Token (PAT)") # and plural definitions (e.g., "personal access tokens (PATs)") -second: '(?:\b[A-Za-z][a-z]+ )+\(([A-Z]{3,5})s?\)' +second: '\(([A-Z]{3,5})s?\)' # ... with the exception of these (and the Microsoft.Acronyms exceptions): exceptions+: + - ATS + - AWS - BTP + - DNS + - GCP - GIF - HANA + - IAM - JDBC - JPEG - JPG + - JVM - MCP - MDA + - MIME - MPR - - NOT + - NGINX + - OIDC - OQL - PNG - REST + - SAML - SAP + - SMS + - SMTP + - SOAP + - SSO + - TLS + - UTC + - UUID + +# Flagged by Mendix.Uppercase, so don't flag them here + - MUST + - NEVER + - NOT + - ONLY + +# Part of the NOT FOUND status text, which Mendix.Uppercase allows + - FOUND diff --git a/.vale/styles/Mendix/AmericanSpelling.yml b/.vale/styles/Mendix/AmericanSpelling.yml index b7f47d2ba33..a2c7c2fc460 100644 --- a/.vale/styles/Mendix/AmericanSpelling.yml +++ b/.vale/styles/Mendix/AmericanSpelling.yml @@ -43,4 +43,5 @@ swap: '\bbackwards\b': 'backward' '\bupwards\b': 'upward' '\bdownwards\b': 'downward' + '\bonwards\b': 'onward' '\bprogramme([ds])?\b': 'program$1' diff --git a/.vale/styles/Mendix/Capitalization.yml b/.vale/styles/Mendix/Capitalization.yml index df35dba6685..99ea36649f3 100644 --- a/.vale/styles/Mendix/Capitalization.yml +++ b/.vale/styles/Mendix/Capitalization.yml @@ -1,6 +1,8 @@ # Mendix custom rule: Capitalization errors # Reference: content/en/docs/community-tools/contribute-to-mendix-docs/style-guide/grammar-formatting.md (Capitalization of Mendix Terminology) # Reference: content/en/docs/community-tools/contribute-to-mendix-docs/style-guide/product-naming-guide.md +# Known issue: Flags code that isn't marked as code, such as unfenced code inside tabpane shortcodes, function names in link text, and sample column names in table cells. Wrap these in backticks or ignore them. +# Keep in sync with Spelling.yml: if you add a term that isn't in the dictionary, also add it to "Terms covered by other rules" there. If you remove a term, remove it there too. extends: substitution message: "Use '%s' (capitalized)" link: https://docs.mendix.com/community-tools/contribute-to-mendix-docs/style-guide/product-naming-guide/ @@ -15,33 +17,47 @@ scope: action: name: replace swap: - agents kit: Agents Kit - boolean: Boolean - '(^|[^.])git': '$1Git' # Skips .git folder - idp: IdP - '(^|[^/])ios': '$1iOS' # Skips ios in paths - '(^|[^./-])java(?!\.\w)': '$1Java' # Skips .java files, java-in-names, java in paths, and java.lang-style names - macos: macOS - maia: Maia - 'maia make': 'Maia Make' - markdown: Markdown - marketplace: Marketplace - '(^|[^./>@-])mendix(?!/)': '$1Mendix' # Skips com.mendix names, domains, link text after >, @mendix emails, hyphenated repo names, and paths or repos like mendix/docs - 'n/a': 'N/A' - postgres: Postgres - postgresql: PostgreSQL - scrum: Scrum - '(^|[^@])siemens': '$1Siemens' # Skips siemens in email addresses - sql: SQL - 'agile scrum': 'Agile Scrum' + # Mendix terms + 'agents kit': 'Agents Kit' 'atlas ui': 'Atlas UI' 'build server': 'Build Server' 'business engineer': 'Business Engineer' 'control center': 'Control Center' + 'maia make': 'Maia Make' + '(?@-]|com\.\s)mendix(?![/-]|\.\w)': 'Mendix' # Skips com.mendix names (including com.mendix), domains, link text after >, @mendix emails, hyphenated repo names such as mendix-inside-teamcenter, and paths or repos like mendix/docs 'model server': 'Model Server' - 'product owner': 'Product Owner' - 'scrum master': 'Scrum Master' + '(? - This directory contains custom Vale rules specific to Mendix documentation. ## Current Rules @@ -9,23 +7,27 @@ This directory contains custom Vale rules specific to Mendix documentation. * **Acronyms.yml**: Validates acronym definitions and usage * **AmericanSpelling.yml**: Enforces American English spelling * **Capitalization.yml**: Enforces proper capitalization for Mendix terms -* **ClickOn.yml**: Prohibits "click on" in favor of "click" * **CompoundWords.yml**: Enforces proper compound word formatting * **ConditionalAdverbs.yml**: Flags conditional adverbs that add uncertainty (would, could, should, might, etc.) -* **Dashes.yml**: Removes spaces around em dashes (—) -* **Directions.yml**: Enforces upper/lower instead of top/bottom for directional terms +* **EmDashes.yml**: Removes spaces around em dashes (—) * **Emphasis.yml**: Flags bold and italics around emphasis words (not, no, all, never, always, etc.) * **HeadingPunctuation.yml**: Prohibits end punctuation in headings (except question marks) * **HeadingTitleCase.yml**: Enforces title case in headings +* **HttpLinks.yml**: Flags links that use http instead of https * **IconShortcodes.yml**: Suggests using icon shortcodes with tooltips instead of plain text icon descriptions * **Inclusive.yml**: Flags non-inclusive language * **Latin.yml**: Flags Latin abbreviations and phrases that should be replaced with plain English * **LinkText.yml**: Prohibits generic link text like "click here" -* **ListIntroductions.yml**: Enforces en dashes (–) in list item introductions (≤40 chars) by replacing em dashes and spaced hyphens +* **ListIntroductions.yml**: Enforces a spaced en dash (–) in list item introductions (≤40 chars) by replacing em dashes, hyphens, and double hyphens, and by flagging en dashes that lack a space on one side +* **OxfordComma.yml**: Flags a missing comma before the last item in a series of three or more; extends Microsoft.OxfordComma (requires Vale 3.20 or later) +* **ParagraphBreaks.yml**: Suggests checking for a missing blank line when a sentence ends at the end of a line and the next line starts a new sentence * **ProductNames.yml**: Enforces correct Mendix product names -* **SignIn.yml**: Enforces "sign in/out" instead of "log in/out" +* **Repetition.yml**: Flags repeated function words such as "the the"; replaces Vale.Repetition +* **Spelling.yml**: Flags unknown words; accepted words are filters in the file; replaces Vale.Spelling +* **Terminology.yml**: Enforces preferred terms from the terminology guide * **Uppercase.yml**: Flags all-caps emphasis words (NEVER, NOT, ALWAYS, etc.); replaces Microsoft.Uppercase -* **Wordiness.yml**: Suggests simpler, more concise alternatives for wordy phrases +* **Wordiness.yml**: Suggests simpler, more concise alternatives for wordy phrases; extends Microsoft.Wordiness (requires Vale 3.20 or later) + ## Adding New Rules Create a new `.yml` file in this directory, following [Vale's style documentation](https://vale.sh/docs/styles): @@ -40,6 +42,10 @@ swap: 'bad term': 'good term' ``` +## Testing Rules + +After you add or change a rule, add cases for it to [sample.md](../../tests/sample.md) and open that file in VS Code to check the alerts. That file explains how its cases are labeled. + ## Overriding Microsoft Rules In `.vale.ini`: @@ -49,5 +55,5 @@ In `.vale.ini`: Microsoft.Contractions = NO # Change severity -Microsoft.Quotes = warning +Microsoft.Quotes = suggestion ``` diff --git a/.vale/styles/Mendix/Repetition.yml b/.vale/styles/Mendix/Repetition.yml new file mode 100644 index 00000000000..af381a97244 --- /dev/null +++ b/.vale/styles/Mendix/Repetition.yml @@ -0,0 +1,20 @@ +# Mendix custom rule: Repeated words +# Replaces Vale.Repetition, which flags too many legitimate repeats (version placeholders such as x.x, bold labels followed by the same word) +extends: existence +message: "'%s' is repeated." +level: error +ignorecase: true +scope: + - paragraph + - heading + - list + - table + - blockquote +action: + name: edit + params: + - regex + - '^(\S+)\s+\S+$' + - '$1' +tokens: + - '\b(the|a|an|is|as|of|which|that|it|be|with|by|at)\s+\1\b' diff --git a/.vale/styles/Mendix/SignIn.yml b/.vale/styles/Mendix/SignIn.yml deleted file mode 100644 index 62559eaf8e1..00000000000 --- a/.vale/styles/Mendix/SignIn.yml +++ /dev/null @@ -1,20 +0,0 @@ -# Mendix custom rule: Use 'sign in' not 'log in' -# Reference: content/en/docs/community-tools/contribute-to-mendix-docs/style-guide/terminology.md (sign in/sign out) -extends: substitution -message: "Use '%s' instead of '%s' (except in UI button text)." -link: https://docs.mendix.com/community-tools/contribute-to-mendix-docs/style-guide/terminology/#sign-insign-out -level: warning -ignorecase: true -scope: - - paragraph - - heading - - list - - table - - blockquote -action: - name: replace -swap: - 'log in': 'sign in' - 'log out': 'sign out' - 'login to': 'sign in to' - 'logout': 'sign out' diff --git a/.vale/styles/Mendix/Spelling.yml b/.vale/styles/Mendix/Spelling.yml new file mode 100644 index 00000000000..e1124a426c5 --- /dev/null +++ b/.vale/styles/Mendix/Spelling.yml @@ -0,0 +1,223 @@ +# Mendix custom rule: Spelling +# Replaces Vale.Spelling so that plural acronyms (for example, APIs, JDKs) aren't flagged +# Accepted words are filters here, not a Vale vocabulary, because accepted vocabulary words also hide other rules' alerts on text that contains them +# Each word is an anchored regex (^...$) so that it doesn't hide typos that contain it +# Keep in sync with Capitalization.yml, CompoundWords.yml, and Terminology.yml: +# - If you add a term to one of those rules and the word isn't in the dictionary, add it to "Terms covered by other rules" below. Otherwise it is flagged twice. +# - If you remove a term from one of those rules, remove it from "Terms covered by other rules" too. Otherwise it is silently exempt from spelling checks. +extends: spelling +message: "Did you really mean '%s'?" +level: warning +# Skips bold and italic text +scope: text & ~strong & ~emphasis +filters: + # Plural acronyms, such as APIs and JDKs + - '[A-Z]{2,}(?:''s|s)\b' + + # Skips code-like (lowerCamelCase and snake_case) words, which are often flagged as typos. However, consider wrapping these in backticks. + - '_' + - '^[a-z]+([A-Z][a-z0-9]*)+$' + + # Mendix terms + - '^Mendix(?:''s)?$' + - '^mendix$' # Lowercase in com.mendix names and hyphenated repo names + - '^[Cc]onfigurator$' + - '^Interactor$' + - '^javascriptsource$' + - '^javasource$' + - '^mda$' + - '^Medior$' + - '^Menditect$' + - '^[Mm]etamodel$' + - '^[Mm]icroflow(s|''s)?$' + - '^mpk$' + - '^mpr$' + - '^[Mm]x$' + - '^[Mm]xbuild$' + - '^[Nn]anoflow(s|''s)?$' + - '^Quickstarter$' + - '^[Rr]ecommenders?$' + - '^themesource$' + - '^Topbar$' + - '^userlibs?$' + - '^vendorlib$' + + # Third-party products, tools, and vendors + - '^Adoptium$' + - '^Appcircle(''s)?$' + - '^Appium$' + - '^Artifactory$' + - '^BCrypt$' + - '^Bitrise(''s)?$' + - '^Bluestacks$' + - '^Ceph$' + - '^CKEditor$' + - '^Comodo$' + - '^containerd$' + - '^Cordova$' + - '^Crashlytics$' + - '^Dailymotion$' + - '^Datadog$' + - '^Designcenter(''s)?$' + - '^Dojo$' + - '^DOMPurify$' + - '^Dynatrace$' + - '^Fastlane$' + - '^Fiori$' + - '^Filebeat$' + - '^Flexbox$' + - '^Fluentd$' + - '^Genymotion$' + - '^[Gg]lyphicons?$' + - '^[Gg]radle(''s)?$' + - '^Grafana$' + - '^HashiCorp$' + - '^Helmfile$' + - '^HTTPRoute(s|''s)?$' + - '^Intune$' + - '^Istio$' + - '^JConsole$' + - '^Javadoc$' + - '^JFrog$' + - '^jQuery$' + - '^Keras$' + - '^Kibana$' + - '^kubectl$' + - '^kubelet$' + - '^Kustomize$' + - '^Linkerd$' + - '^Mailchimp$' + - '^Mailgun$' + - '^Mapbox(''s)?$' + - '^Mimir$' + - '^minikube$' + - '^Minio$' + - '^MobaXterm$' + - '^Mockito$' + - '^nginx$' + - '^OpenShift$' + - '^Opsgenie$' + - '^Podman$' + - '^Promtail$' + - '^([Rr]edistributable|Redistributables)$' + - '^Rekognition$' + - '^Rspack$' + - '^Selenoid$' + - '^Siri$' + - '^Sonatype(''s)?$' + - '^Sourcetree$' + - '^Splunk$' + - '^STACKIT$' + - '^Strimzi$' + - '^Svix$' + - '^Sysdig$' + - '^Tailnet$' + - '^Tailscale(''s)?$' + - '^[Tt]eamcenter(''s)?$' + - '^Tekton$' + - '^Temurin$' + - '^Textract$' + - '^Thanos$' + - '^Thawte$' + - '^Traefik$' + - '^Trivy$' + - '^Velero$' + - '^Verisign$' + - '^Vue$' + - '^Xcelerator$' + - '^XGBoost$' + - '^Zendesk$' + - '^Zscaler$' + + # General technical terms + - '^[Aa]utocommit(ted)?$' + - '^[Aa]utofocus$' + - '^[Aa]utonumbers?$' + - '^[Aa]utosave$' + - '^[Aa]utostart$' + - '^agentless$' + - '^bmp$' + - '^[Bb]uildpacks?$' + - '^[Cc]artesian$' + - '^clickjacking$' + - '^[Cc]mdlets?$' + - '^Colorpicker$' + - '^[Dd]eletable$' + - '^[Dd]enormaliz(e|ing|ation)$' + - '^[Dd]ockable$' + - '^dotnet$' + - '^draggable$' + - '^[Ee]ditability$' + - '^[Ee]xecutability$' + - '^firewalled$' + - '^focusable$' + - '^[Ff]reeable$' + - '^geocoding$' + - '^gibibytes$' + - '^hashtables?$' + - '^href$' + - '^https$' + - '^[Hh]yperscalers?$' + - '^IdP''s$' + - '^[Ii]nfographics?$' + - '^[Ii]nitialisms?$' + - '^[Ii]nsertable$' + - '^JCo$' + - '^jdoe$' + - '^journaling$' + - '^js$' + - '^Kanban$' + - '^lemmatization$' + - '^[Ll]ogcat$' + - '^ltr$' + - '^MBeans?$' + - '^metaspace$' + - '^[Mm]isconfigure[ds]?$' + - '^msi$' + - '^multithreaded$' + - '^[Nn]illable$' + - '^OData(''s)?$' + - '^[Oo]ffboard(ed)?$' + - '^outdent$' + - '^[Oo]vercommit(ted|ment)?$' + - '^pem$' + - '^[Pp]eerings?$' + - '^[Pp]ersistable$' + - '^Persistability$' + - '^[Pp]ersonalizable$' + - '^[Pp]redesigned$' + - '^px$' + - '^[Rr]eactively$' + - '^[Rr]eauthenticat(e|es|ed|ion)$' + - '^[Rr]edownload(s|ed|ing)?$' + - '^[Rr]eprompt(s|ed|ing)?$' + - '^revalidated$' + - '^rtl$' + - '^[Ss]afelist(s|ed|ing)?$' + - '^[Ss]avepoints?$' + - '^scss$' + - '^sqlcmd$' + - '^src$' + - '^[Ss]ubexpressions?$' + - '^[Ss]ubplans?$' + - '^[Ss]tylings?$' + - '^swimlanes?$' + - '^tapjacking$' + - '^ttf$' + - '^[Tt]ypographies$' + - '^unfocus$' + - '^(Ungroup|ungrouped)$' + - '^[Uu]nicode$' + - '^[Uu]nmute[ds]?$' + - '^[Uu]nsynchronized$' + - '^upvoted$' + - '^webp$' + - '^webpages$' + - '^[Ww]ebservices?$' + - '^wireframe$' + - '^xcodebuild$' + - '^xlsx$' + - '^XPaths?$' + + # Terms covered by other rules (listed here to prevent duplicate flags) + - '^(?i:airgapped|dropzones?|hashicorp|idp|ios|javascript|jquery|macos|maia|oauth|onwards|openshift|postgres|postgresql|powershell|sql|submicroflows?|yaml)$' diff --git a/.vale/styles/Mendix/Terminology.yml b/.vale/styles/Mendix/Terminology.yml new file mode 100644 index 00000000000..115743cd785 --- /dev/null +++ b/.vale/styles/Mendix/Terminology.yml @@ -0,0 +1,71 @@ +# Mendix custom rule: Terminology substitutions +# Reference: content/en/docs/community-tools/contribute-to-mendix-docs/style-guide/terminology.md +# Note: Deprecated and incorrect product names are covered by a separate rule, ProductNames.yml +# Known issue: Flags terms in UI button text, which can't be changed. Ignore those cases. +extends: substitution +message: "Use '%s' instead of '%s'." +link: https://docs.mendix.com/community-tools/contribute-to-mendix-docs/style-guide/terminology/ +level: warning +ignorecase: false +scope: + - paragraph + - heading + - list + - table + - blockquote +action: + name: replace +swap: + # angle brackets and braces (not "pointy brackets" or "curly brackets") + 'pointy brackets': 'angle brackets' + 'curly brackets': 'braces' + + # click (not "click on") + '\b([Cc]lick(?:s|ing|ed)?) on\b': '$1' + + # functionality (not "functionalities") + 'functionalities': 'functionality' + + # hover over (not "mouse over") + 'mouse over': 'hover over' + 'Mouse over': 'Hover over' + + # left, right (not "left-hand", "right-hand") + '\b([Ll]eft)-hand\b': '$1' + '\b([Rr]ight)-hand\b': '$1' + + # on-premises (not "on-premise", "on prem", "on-prem") + '\b([Oo]n)[- ]?prem(?:ise)?\b': '$1-premises' + + # persistable, non-persistable (not "persistent", "non-persistent") for entities, objects, and attributes + # Limited to these nouns because "persistent" is acceptable in its general sense, for example, a persistent connection + '\b([Nn]on)-?persistent (entity|entities|object|objects|attribute|attributes)\b': '$1-persistable $2' + '\b([Pp]ersist)ent (entity|entities|object|objects|attribute|attributes)\b': '$1able $2' + + # sign in, sign out (not "log in", "log out") + # The first letter changes, so each term needs a lowercase and a capitalized line + 'log in': 'sign in' + 'Log in': 'Sign in' + 'log out': 'sign out' + 'Log out': 'Sign out' + 'login to': 'sign in to' + 'Login to': 'Sign in to' + 'logout': 'sign out' + 'Logout': 'Sign out' + + # third-party (not "3rd party" or "3rd-party") + '3rd-party': 'third-party' + '3rd party': 'third party' + + # upper/lower (not "top/bottom") for directions + # Before "corner", the compound is hyphenated: upper-left corner + 'top[ -](left|right) corner': 'upper-$1 corner' + 'Top[ -](left|right) corner': 'Upper-$1 corner' + 'bottom[ -](left|right) corner': 'lower-$1 corner' + 'Bottom[ -](left|right) corner': 'Lower-$1 corner' + '([Uu]pper|[Ll]ower) (left|right) corner': '$1-$2 corner' + # Elsewhere, keep the writer's separator + 'top([ -])(left|right)(?! corner)': 'upper$1$2' + 'Top([ -])(left|right)(?! corner)': 'Upper$1$2' + 'bottom([ -])(left|right)(?! corner)': 'lower$1$2' + 'Bottom([ -])(left|right)(?! corner)': 'Lower$1$2' diff --git a/.vale/styles/Mendix/Wordiness.yml b/.vale/styles/Mendix/Wordiness.yml index d5928f67424..0baf5c0c956 100644 --- a/.vale/styles/Mendix/Wordiness.yml +++ b/.vale/styles/Mendix/Wordiness.yml @@ -7,7 +7,6 @@ swap+: "(?:take away|eliminate)": remove "(?:inform)": tell allows you to: lets you - in case of: if doomed to fail: will fail in a timely manner: on time swap-: diff --git a/.vale/tests/sample.md b/.vale/tests/sample.md new file mode 100644 index 00000000000..02cf01d59a8 --- /dev/null +++ b/.vale/tests/sample.md @@ -0,0 +1,462 @@ +--- +title: "Vale Rule Sample" +url: /vale-rule-sample/ +description: "Describes sample sentences for manually checking custom Vale rules." +--- + +This file is for manual checks of the custom Vale rules. It isn't published. The CI workflow lints only files under content/en/docs. + +After you change a rule, open this file in VS Code and check the underlined text and the **Problems** tab. If you prefer the command line, run `vale .vale/tests/sample.md`. An HTML comment above each case says what the rule named in the section heading must do. Alerts from other rules are noise. + +* `flagged`: The case must produce an alert from the rule. +* `not flagged`: The case must not produce an alert from the rule. Wherever possible, it varies the `flagged` case just above it by the smallest change that the rule must ignore, such as code font or a leading period. +* `known gap`: The rule needs to flag the case but doesn't yet. +* `known false positive`: The rule flags the case but must not. + +Keep each case together as a block with no blank lines inside it, except for a table, and don't repeat the exact text of a case. Vale reports only one of two identical sentences in a file. + +## Mendix.Acronyms + +Flags an acronym that isn't defined on first use, unless it's on the exception list. + + +The ZQX feature is enabled. + + +The REST feature is enabled. + + +Enable the WMC (the widget management console) and share the WMC settings. + + +Enable the widget management console (WMC) and share the WMC settings. + + +See [LTS, MTS, and Monthly Releases](/releasenotes/studio-pro/lts-mts/) for details. + + +Pick an LTS version for your app. + + +Open the [widget cache manager](/refguide/) (WCM) and share the WCM settings. + +## Mendix.AmericanSpelling + +Flags British spellings. + + +Set the colour property in the style file. + + +Set the `colour` property in the style file. + + +The request was cancelled. + +## Mendix.Capitalization + +Flags lowercase Mendix terms and third-party names. + + +Open studio pro and the team server. + + +Open the git folder. + + +Open the .git folder. + + +Use the mendix library. + + +Use the mendix-ui library. + + +See the project. mendix is a platform. + + +Use the java package. + + +Use the java.lang package. + + +Connect as the user postgres. + + +Connect as the user "postgres". + + +Select the teamcenter connector. + + +Select the TEAMCENTER connector. + + +Install the tools for macos, ios, and java. + + +Open powershell now. + + +Open powershell.exe now. + + +Open powershell. + +## Mendix.CompoundWords + +Flags terms that Mendix writes as one word or hyphenates. + + +Select the check box. + + +Select the `check box`. + + +Re-use your password. + + +Re-enter your password. + + +Double click to open the page. + + +Double click **Edit** to open the page. + +## Mendix.ConditionalAdverbs + +Flags words that add uncertainty. + + +Use the would keyword in the file. + + +Use the `would` keyword in the file. + + +This actually works. + +## Mendix.EmDashes + +Flags spaces around an em dash. + + +The page closes — the data is saved. + + +The page closes—the data is saved. + +## Mendix.Emphasis + +Flags bold or italics used for emphasis. + + +You must **not** delete the entity. + + +Open the *Not Found* page. + + +Select the **all** tab. + + +Select the **All** tab. + +## Mendix.HeadingPunctuation + +Flags end punctuation in headings, except question marks. + + +#### What Is an Entity. + + +#### What Is an Entity? + + +#### Overview: + +## Mendix.HeadingTitleCase + +Flags headings that aren't in title case. + + +#### Using macos and ios + + +#### Using macOS and iOS + + +#### Edit the config.json file + + +#### Edit the config.json File + + +#### add a new entity + + +#### How to add an Entity to Your App + +## Mendix.HttpLinks + +Flags links that use http. + + +Read the [insecure page](http://example.org/page/). + + +Read the [local page](http://localhost:8080/page/). + + +Enter `http://example.org/page/` in the address bar. + +## Mendix.IconShortcodes + +Flags plain-text icon descriptions that need an icon shortcode. + + +Click the pencil icon to edit the entity. + + +#### Click the Pencil Icon + + +Click the three-dot menu to see more options. + +## Mendix.Inclusive + +Flags non-inclusive terms. + + +Set the whitelist option in the file. + + +Set the `whitelist` option in the file. + +## Mendix.Latin + +Flags Latin abbreviations. + + +Enter e.g. in the field. + + +Enter `e.g.` in the field. + + +Use a data type (i.e. an integer). + + +Add the entity, the attribute, etc. + +## Mendix.LinkText + +Flags generic link text. + + +Read [this page](/refguide/) for details. + + +Read [more about this page](/refguide/) for details. + + +Click [here](/refguide/) for details. + + +Click [here and there](/refguide/) for details. + +## Mendix.ListIntroductions + +Flags a hyphen, double hyphen, em dash, or misspaced en dash after a list item introduction of up to 40 characters. + + +* Use an entity — and its attributes — to store data in the database. + + +* Use an entity—and its attributes—to store data in the database. + + +* **Entity** - Stores data. + + +* **Association**— Links entities. + + +* **Domain Model** —Holds the structure. + + +1. **Microflow** - Runs logic. + + +* **Page** –Shows data. + + +* Widget– Shows data. + + +* **Module** -- Groups data. + + + +* **URL** – The public URL. + + +* `entity` - Stores data. + + +* **A very long list item introduction that exceeds forty characters** — Describes data. + +## Mendix.OxfordComma + +Flags a missing comma before the last item in a series of three or more. + + +Add the entity, the attribute and the association. + + +Add the entity and the attribute. + + +You can import, export or delete the data. + + +Optionally, import and export the data. + + +Open the app, import and manage the data. + +## Mendix.ParagraphBreaks + +Suggests a blank line when a sentence ends at the end of a line and the next line starts a new sentence. + + +This sentence ends here. +This sentence starts a new line. + + +This sentence runs on +and continues on the next line. + +## Mendix.ProductNames + +Flags deprecated product names. + + +Sign in to the Developer Portal. + + +Sign in to the developer portal. + + +Use Data Hub to find the service. + + +Open **Sprintr** to see your apps. + +## Mendix.Repetition + +Flags a repeated function word. + + +She had a a long day. + + +She had had a long day. + + +Use the **Name** name field. + + +Mendix 10.x x.x versions share this behavior. + +## Mendix.Spelling + +Flags words that aren't in the dictionary or the accepted-word list. + + +Select recieve in the list. + + +Select **recieve** in the list. + + +Set the atribute value. + + +Set the atribute_value value. + +### Covered by Other Rules + +Another rule flags the incorrect form of each of these words, so Mendix.Spelling must not flag them too. Each line must produce an alert from the rule named in its first sentence and no alert from Mendix.Spelling. Keep these lines in sync with the "Terms covered by other rules" filter in Spelling.yml. + + +Mendix.Capitalization flags hashicorp, idp, ios, javascript, JQuery, macos, maia, oauth, openshift, postgres, postgresql, powershell, sql, and yaml. + + +Mendix.CompoundWords flags airgapped, dropzone, dropzones, submicroflow, and submicroflows. + + +Mendix.AmericanSpelling flags onwards. + +## Mendix.Terminology + +Flags terms that the terminology guide replaces. + + +Use the persistent entity. + + +Use a persistent connection. + + +Log in to the portal. + + +Read the blog in the portal. + + +Click on the button. + + +| Task | Instruction | +| --- | --- | +| Sign in | Log out of the portal. | + + +Click the top right corner of the page. + + +Select the top right of the page. + +## Mendix.Uppercase + +Flags all-caps words used for emphasis. + + +Do NOT change it. + + +The server returns HTTP 404 NOT FOUND. + + +NEVER delete the entity. + + +Use the REST API with SAP BTP. + +## Mendix.Wordiness + +Suggests simpler alternatives for wordy phrases. + + +Add the entity in order to store data. + + +Please inform the team. + + +Inform the team. diff --git a/content/en/docs/community-tools/contribute-to-mendix-docs/style-guide/grammar-formatting.md b/content/en/docs/community-tools/contribute-to-mendix-docs/style-guide/grammar-formatting.md index a4330c99600..77da4829f2b 100644 --- a/content/en/docs/community-tools/contribute-to-mendix-docs/style-guide/grammar-formatting.md +++ b/content/en/docs/community-tools/contribute-to-mendix-docs/style-guide/grammar-formatting.md @@ -133,11 +133,11 @@ Only link to URLs that use HTTPS. If you are working with a URL that uses HTTP, #### APIs -When cross-referencing an API (like Client or Mendix Runtime) that is hosted on `http://apidocs.rnd.mendix.com` but you are only cross-referencing the index (meaning, the general API or the API in its entirety), use a relative link to the Mendix docs page for that API: +When cross-referencing an API (like Client or Mendix Runtime) that is hosted on `https://apidocs.rnd.mendix.com` but you are only cross-referencing the index (meaning, the general API or the API in its entirety), use a relative link to the Mendix docs page for that API: > [App Repository API](/apidocs-mxsdk/apidocs/) -When cross-referencing a specific API method or element, use a link to `http://apidocs.rnd.mendix.com`. These links are updated per Studio Pro major version (and thus API version). +When cross-referencing a specific API method or element, use a link to `https://apidocs.rnd.mendix.com`. These links are updated per Studio Pro major version (and thus API version). #### Learning Path @@ -161,7 +161,7 @@ When cross-referencing a section of another document, add the link to the sectio For static links to external websites, use the site or page name as the link text instead of the full URL, unless emphasizing the URL format matters. -> You can download it for free at [Tortoise SVN](http://tortoisesvn.tigris.org/) (choose version 1.6). +> You can download it for free at [Tortoise SVN](https://tortoisesvn.net/). ## Dashes @@ -500,7 +500,7 @@ You can replace an OpenID with a random UUID that you generate using a [UUID gen ## Placeholders {#placeholders} -### Placeholders In Sample Code +### Placeholders in Sample Code Placeholders in sample code represent values that the user must replace when they use the sample code. For inline code placeholders, use code formatting, italics, and all caps. For code blocks, use all caps and add text instructions explaining what to replace. diff --git a/content/en/docs/community-tools/contribute-to-mendix-docs/style-guide/terminology.md b/content/en/docs/community-tools/contribute-to-mendix-docs/style-guide/terminology.md index b5be86d9e3b..03a658ae671 100644 --- a/content/en/docs/community-tools/contribute-to-mendix-docs/style-guide/terminology.md +++ b/content/en/docs/community-tools/contribute-to-mendix-docs/style-guide/terminology.md @@ -415,6 +415,10 @@ Spell as two words without a hyphen. Spelling of this doc type varies in the industry, but the decision to go with two words is based on usage from [Siemens](https://cache.industry.siemens.com/dl/files/923/109739923/att_890063/v1/A5E31805656-06_SIPROCESS_GA700_KBA_en_en-US.pdf), [AWS](https://aws.amazon.com/quickstart/?solutions-all.sort-by=item.additionalFields.sortDate&solutions-all.sort-order=desc&awsf.filter-content-type=content-type%23quick-start&awsf.filter-tech-category=*all&awsf.filter-industry=*all), and [Microsoft](https://support.microsoft.com/en-au/office/microsoft-365-quick-starts-25f909da-3e76-443d-94f4-6cdf7dedc51e). +## read-only + +Hyphenate (following the *Microsoft Style Guide*). + ## recommend Use "Mendix recommends" rather than "we recommend". @@ -503,6 +507,10 @@ Can use as a verb. > Click this to toggle the protection level for the content. +## tooltip + +Write as one word (following the *Microsoft Style Guide*). + ## upper left/upper right {#upperlowercase} When used as an adjective, include a hyphen between the words.