Skip to content

Commit 12e2754

Browse files
authored
Merge pull request #907 from aireilly/freeze-vale-version
Various small changes to fix the rules build
2 parents 0395c53 + 3a70241 commit 12e2754

File tree

10 files changed

+19
-14
lines changed

10 files changed

+19
-14
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
//vale-fixture
22
image::my-image-name.png[]
3+
4+
//vale-fixture
35
image:my-image-name.png[]

.vale/fixtures/AsciiDoc/UnsetAttributes/testinvalid.adoc

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
:context: creating-infrastructure-machinesets
33
= Testing
44

5+
//vale-fixture
56
ifeval::["{context}" == "creating-infrastructure-machinesets"]
67
:infra: test
78
endif::[]
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
//vale-fixture
21
:_mod-docs-content-type: REFERENCE
32
[id="optional-postinstall-configurations_{context}"]
3+
//vale-fixture
44
= Optional: Postinstall configurations
55

6+
//vale-fixture
67
== Optional: More postinstall configurations
7-
8-
\\ == Optional: more options
9-

.vale/fixtures/OpenShiftAsciiDoc/NoOptionalTitles/testvalid.adoc

+3
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22
:_mod-docs-content-type: REFERENCE
33
[id="cli-basic-commands_{context}"]
44
= No optional CLI commands
5+
6+
//vale-fixture
7+
// == Optional: more options
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
https://github.com/project
2-
https://gitlab.com/project
1+
https://github.com/project1
2+
https://gitlab.com/project2
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
= A valid heading
1+
= A valid heading

.vale/styles/OpenShiftAsciiDoc/NoOptionalTitles.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ level: error
55
link: https://github.com/openshift/openshift-docs/blob/main/contributing_to_docs/doc_guidelines.adoc#assembly-file-metadata
66
message: "Do not begin a module or assembly title with 'Optional:'."
77
raw:
8-
- '(?<!\/\/)={1,5} Optional:'
8+
- '(?<!\/\/\s?={1,5}) Optional:'

.vale/styles/RedHat/GitLinks.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ extends: existence
33
message: Do not include a link to %s unless it is explicitly approved.
44
link: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/reference-guide/gitlinks/
55
ignorecase: true
6+
nonword: true
67
level: warning
78
scope: raw
89
action:
910
name: remove
1011
tokens:
11-
- 'https:\/\/gitlab\.com'
12+
- 'https:\/\/gitlab\.com\/\w+'
1213
- 'https:\/\/github\.com(?!\/openshift|\/redhat-developer)'
+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
extends: substitution
2+
extends: existence
33
level: warning
44
link: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/reference-guide/headingpunctuation/
55
message: "Do not use end punctuation in headings."
66
nonword: true
77
scope: heading
88
action:
9-
name: replace
10-
swap:
11-
'[.?!]$': ''
9+
name: remove
10+
tokens:
11+
- '[.?!]$'

modules/user-guide/pages/glossary.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The `vale` command-line tool brings code-like linting to prose. Use it to valida
1717

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

2222
[id="vale-configuration-file"]
2323
== Vale configuration file

0 commit comments

Comments
 (0)