-
Notifications
You must be signed in to change notification settings - Fork 59
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
Add warning rule for Git links #843
Conversation
🎊 Navigate the preview: https://redhat-documentation-vale-at-red-hat-843.surge.sh 🎊 |
74396a2
to
7f920d5
Compare
@aireilly I think I need your help. I can't seem to get the validation rules to work. |
3de622f
to
5e36500
Compare
I think this needs its own rule. What about: ---
extends: existence
message: Do not include a link to '%s' in documentation source unless it is explicitly approved.
link: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/reference-guide/github-links/
ignorecase: true
level: error
scope: raw
action:
name: remove
tokens:
- 'https:\/\/gitlab\.com\/.*'
- 'https:\/\/github\.com\/.*' Note Red Hat rules also need their own small reference page: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/reference-guide/reference-guide/ |
... I can give it a try. |
c5adec3
to
1468a56
Compare
@aireilly Can you look at this? I'm still not sure about how to fix the validation rules. |
So your rules are looking for a slug after the URL, there will fire the rule:
these will not:
|
It worked! Will this rule really work? |
Are we sure that this directive (No Git links) applies to all projects under the Red Hat umbrella? |
It's in the RHSSG: External links. |
Shouldn't I be able to see this new rule in the surge.sh preview? |
No you need to create a page + update the nav.adoc. See #634 for reference |
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.
Looks good I think this is nearly ready. Added a few small comments
If you search for Maybe add some exceptions?
|
3559d53
to
a7316a5
Compare
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.
/lgtm
Closes #828