Skip to content

Commit

Permalink
Merge pull request #907 from aireilly/freeze-vale-version
Browse files Browse the repository at this point in the history
Various small changes to fix the rules build
  • Loading branch information
aireilly authored Jan 10, 2025
2 parents 0395c53 + 3a70241 commit 12e2754
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .vale/fixtures/AsciiDoc/ImageContainsAltText/testinvalid.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//vale-fixture
image::my-image-name.png[]

//vale-fixture
image:my-image-name.png[]
1 change: 1 addition & 0 deletions .vale/fixtures/AsciiDoc/UnsetAttributes/testinvalid.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
:context: creating-infrastructure-machinesets
= Testing

//vale-fixture
ifeval::["{context}" == "creating-infrastructure-machinesets"]
:infra: test
endif::[]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
//vale-fixture
:_mod-docs-content-type: REFERENCE
[id="optional-postinstall-configurations_{context}"]
//vale-fixture
= Optional: Postinstall configurations

//vale-fixture
== Optional: More postinstall configurations

\\ == Optional: more options

Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
:_mod-docs-content-type: REFERENCE
[id="cli-basic-commands_{context}"]
= No optional CLI commands

//vale-fixture
// == Optional: more options
4 changes: 2 additions & 2 deletions .vale/fixtures/RedHat/GitLinks/testinvalid.adoc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
https://github.com/project
https://gitlab.com/project
https://github.com/project1
https://gitlab.com/project2
2 changes: 1 addition & 1 deletion .vale/fixtures/RedHat/HeadingPunctuation/testvalid.adoc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
= A valid heading
= A valid heading
2 changes: 1 addition & 1 deletion .vale/styles/OpenShiftAsciiDoc/NoOptionalTitles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ level: error
link: https://github.com/openshift/openshift-docs/blob/main/contributing_to_docs/doc_guidelines.adoc#assembly-file-metadata
message: "Do not begin a module or assembly title with 'Optional:'."
raw:
- '(?<!\/\/)={1,5} Optional:'
- '(?<!\/\/\s?={1,5}) Optional:'
3 changes: 2 additions & 1 deletion .vale/styles/RedHat/GitLinks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ extends: existence
message: Do not include a link to %s unless it is explicitly approved.
link: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/reference-guide/gitlinks/
ignorecase: true
nonword: true
level: warning
scope: raw
action:
name: remove
tokens:
- 'https:\/\/gitlab\.com'
- 'https:\/\/gitlab\.com\/\w+'
- 'https:\/\/github\.com(?!\/openshift|\/redhat-developer)'
8 changes: 4 additions & 4 deletions .vale/styles/RedHat/HeadingPunctuation.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
extends: substitution
extends: existence
level: warning
link: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/reference-guide/headingpunctuation/
message: "Do not use end punctuation in headings."
nonword: true
scope: heading
action:
name: replace
swap:
'[.?!]$': ''
name: remove
tokens:
- '[.?!]$'
2 changes: 1 addition & 1 deletion modules/user-guide/pages/glossary.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The `vale` command-line tool brings code-like linting to prose. Use it to valida

* xref:installing-vale-cli.adoc[]
* xref:using-vale-with-a-continuous-integration-service.adoc[]
* link:https://vale.sh/docs/vale-cli/overview[Vale documentation - Overview]
* link:https://vale.sh/docs/cli[Vale documentation - CLI]

[id="vale-configuration-file"]
== Vale configuration file
Expand Down

0 comments on commit 12e2754

Please sign in to comment.