Skip to content
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

Localhost link lint #16424

Merged
merged 13 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/styles/cloudflare/LinkChecks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
# Warning: cloudflare.LinkChecks
#
# Checks for the presence of semantically unhelpful words in link text.
#
# For a list of all options, see https://vale.sh/docs/topics/styles/
extends: existence
message: "**Warning**: When referring to another page in our docs, use the full relative link (`/1.1.1.1/check/`) instead of the full URL (`https://developers.cloudflare.com/1.1.1.1/check/`) or a local development link (`http://localhost:111/1.1.1.1/check/`)."
level: warning
ignorecase: true
scope: raw
nonword: true
tokens:
- \[.*\]\(https?:\/\/developers\.cloudflare\.com\/.+\)
- \[.*\]\(https?:\/\/localhost:1111\/.*?\)
1 change: 0 additions & 1 deletion .github/styles/cloudflare/MeaningfulLinkWords.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ tokens:
- \[here\]\(.*\)
- \[this page\]\(.*\)
- \[read more\]\(.*\)

12 changes: 0 additions & 12 deletions .github/styles/cloudflare/RelativeLinks.yml

This file was deleted.

1 change: 0 additions & 1 deletion .hyperlint/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ authorized_users:
- RebeccaTamachiro
style_guide:
enabled: true
unmanaged_vale: true
6 changes: 3 additions & 3 deletions .vale.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
StylesPath = .github/styles
MinAlertLevel = suggestion
IgnoredScopes = code, tt, img, url, a
IgnoredScopes = code, tt, img
SkippedScopes = script, style, pre, figure, code

[formats]
yml = yaml
mdx = md

[*]
# Ignore code surrounded by backticks or plus sign, parameters defaults, URLs, and angle brackets.
TokenIgnores = (<\/?[A-Z].+>), (\x60[^\n\x60]+\x60), ([^\n]+=[^\n]*), (\+[^\n]+\+), (http[^\n]+\[), (https[^\n]+\[)
# Ignore code surrounded by backticks or plus sign, parameters defaults, and angle brackets.
TokenIgnores = (<\/?[A-Z].+>), (\x60[^\n\x60]+\x60), ([^\n]+=[^\n]*), (\+[^\n]+\+)

[*.md]
BasedOnStyles = cloudflare
Expand Down
Loading