Skip to content

Conversation

@rohennes
Copy link
Collaborator

PV1 fails late in the build process if the headings aren't alphanumeric. It balks at even having periods in them.

@github-actions
Copy link

github-actions bot commented Nov 24, 2025

🎊 Navigate the preview: https://redhat-documentation-vale-at-red-hat-987.surge.sh 🎊

@rohennes rohennes force-pushed the openshift-asciidoc-headings branch from a27e976 to dfcd7f6 Compare November 24, 2025 11:05
@aireilly
Copy link
Member

/lgtm

message: "Headings should only contain alphanumeric characters."
nonword: true
tokens:
- "^=+\\s+.*[^a-zA-Z0-9\\s\\{\\}'`-].*$" No newline at end of file
Copy link
Member

@aireilly aireilly Nov 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- "^=+\\s+.*[^a-zA-Z0-9\\s\\{\\}'`-].*$"
- "^=+\s+.*[^a-zA-Z0-9\s\{\}'`-].*$"

Copy link
Member

@aireilly aireilly Nov 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need to escape here

Copy link
Collaborator Author

@rohennes rohennes Nov 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scrapped this version and moving to a tengo script. It was flagging on admonition blocks

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw, I recall that whatever flavour of regex Value uses required double escapes to work

== No @Symbols! Here

//vale-fixture
== No periods.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes but Something like this is valid and gets caught too:

== Installing the .NET plugin

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah... bit of a clash there I guess. Maybe need an exclusion list. Apparently periods in headings break something in PV1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants