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

Adjust levels of Vale rules #48850

Merged
merged 1 commit into from
Dec 2, 2024
Merged

Conversation

ptgott
Copy link
Contributor

@ptgott ptgott commented Nov 12, 2024

Change the error levels of Vale style rules to pave the way for requiring the Vale linter.

If a style rule has the raw scope, it is not currently possible to disable the rule within a document using HTML/MDX comments. Further, a rule with the error level causes Vale to exit with a nonzero error code if a page violates the rule. As a result, this change makes the following adjustments to the error levels of Vale style rules:

  • error: styles where we want to ensure consistency/correctness, and where it is possible to disable the style using comments.
  • warning: style rules that an author might need to ignore. This includes style rules with the raw scope, which cannot be disabled using comments.

For some style rules, change the scope from raw to another scope that allows a docs author to disable the rule within a document using HTML/MDX-style comments.

Copy link

🤖 Vercel preview here: https://docs-hhfg9awuk-goteleport.vercel.app/docs/ver/preview

@ptgott ptgott added the no-changelog Indicates that a PR does not require a changelog entry label Nov 12, 2024
@ptgott ptgott force-pushed the paul.gottschling/2024-11-12-vale-leveling branch from d098cc6 to fd88c03 Compare November 14, 2024 22:15
Copy link

🤖 Vercel preview here: https://docs-92k37vkgh-goteleport.vercel.app/docs/ver/preview

Change the error levels of Vale style rules to pave the way for
requiring the Vale linter. Use the `warning` level for all rules except
for the step numbering rule. This mostly preserves the existing "check
prose style" GitHub Actions job behavior, in which Vale style rules are
optional. The one rule we require is to ensure that numbered `Step n/d`
headings follow the correct numbering scheme.
@ptgott ptgott force-pushed the paul.gottschling/2024-11-12-vale-leveling branch from fd88c03 to 40b877b Compare December 2, 2024 16:01
@ptgott
Copy link
Contributor Author

ptgott commented Dec 2, 2024

@zmb3 After speaking with the Docs Team, I've changed all rules except the step numbering rule to have the warning level.

@mmcallister Would you have time to take a look at this? It implements one step we talked about at our meeting. Thanks!

Copy link

github-actions bot commented Dec 2, 2024

🤖 Vercel preview here: https://docs-1igietmjf-goteleport.vercel.app/docs

@ptgott ptgott added this pull request to the merge queue Dec 2, 2024
Merged via the queue into master with commit fff2a6f Dec 2, 2024
42 checks passed
@ptgott ptgott deleted the paul.gottschling/2024-11-12-vale-leveling branch December 2, 2024 19:12
@public-teleport-github-review-bot

@ptgott See the table below for backport results.

Branch Result
branch/v17 Failed

ptgott added a commit that referenced this pull request Dec 2, 2024
Backports #48850

Change the error levels of Vale style rules to pave the way for
requiring the Vale linter. Use the `warning` level for all rules except
for the step numbering rule. This mostly preserves the existing "check
prose style" GitHub Actions job behavior, in which Vale style rules are
optional. The one rule we require is to ensure that numbered `Step n/d`
headings follow the correct numbering scheme.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v17 documentation no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants