-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Eliminating the white space from the xref macro #35084
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: Should we have a linter with such kind of rules?
Great idea @cescoffier . We could investigate adding this to the Vale ruleset for Quarkus. |
Does it hurt to have a whitespace? Just wondering how much we should invest in it. |
I guess it doesn't hurt, but I like to keep things unified if possible. |
Well, I don't recall saying that tbh. I said it was working with or without equally but the doc is without and that our example should be consistent with the AsciiDoctor doc. I'm not saying we shouldn't merge this, it's good. I wouldn't make it a priority to have a tooling to check that though, if it doesn't cause any problems, given all the other issues we have that actually cause problems. |
But you are saying in next sentence that you dont think it matters. Vale can use this as a recommendation, or I can do this check once a year, or drop this completely. |
Signed-off-by: Michal Maléř <[email protected]>
5882043
to
08168ea
Compare
Looks like I had a good recollection of what I said :) I'm not sure it's coming from these changes but the doc build is failing with:
|
We need to understand what's going on with ^ but we can merge once it's fixed. |
You are my greatest Quarkus hero, would never said something you didn't :)) All I did was use this regex to search for the space after a comma inside <<>> in the repo .adoc files with: The truth is, this operation had two iterations (but it was maybe caused by the fact that my IDEA didn't find all occurrences when I hit the FindNReplace button for the first time. I double-checked all stuff I touched and they are all in the <<>>, thus should not touched the context or and ID. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merging as the failure is not related. I will fix it in an upcoming PR.
🙈 The PR is closed and the preview is expired. |
See #35089 |
Yeah, that's exactly how I work :-) Thanks! |
The correct way of using xref macro is documented in https://quarkus.io/guides/doc-reference#anchors-reference
This PR just cleans it up so that contributors can not get a bad example directly from the source code.
Kudos to @jmartisk for creation of the regex to catch them all.