-
Notifications
You must be signed in to change notification settings - Fork 19
Update checkly rules and TS Docs reference docs #1179
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
base: main
Are you sure you want to change the base?
Conversation
7b6887d to
4dde546
Compare
4dde546 to
ad07889
Compare
| * }) | ||
| * ``` | ||
| * | ||
| * @see {@link https://www.checklyhq.com/docs/cli/constructs-reference/#alertchannel | AlertChannel API 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.
There's no general alertChannel construct docs page anymore.
| * @see {@link https://www.checklyhq.com/docs/cli/constructs-reference/#apicheck | ApiCheck API Reference} | ||
| * @see {@link https://www.checklyhq.com/docs/monitoring/api-checks/ | API Checks Documentation} | ||
| */ | ||
| /** |
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.
This entire section was a duplicate of the above.
| * @see {@link https://www.checklyhq.com/docs/detect/synthetic-monitoring/api-checks/overview/ | ||
| * API Checks Documentation} |
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.
I think you have to keep @links as one line. Just tried in VS Code and it doesn't render correctly the way you have it here.
| * @see {@link https://www.checklyhq.com/docs/detect/synthetic-monitoring/api-checks/overview/ | |
| * API Checks Documentation} | |
| * @see {@link https://www.checklyhq.com/docs/detect/synthetic-monitoring/api-checks/overview/ API Checks Documentation} |
And then it looks like we'd have to add ignoreComments: true to aslant.config.mjs:
'max-len': ['error',
{
code: 120,
ignoreTemplateLiterals: true,
ignoreStrings: true,
ignoreComments: true,
},
],
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.
@sorccu Here's the thing, I looked into exactly this. I had them on one line, but ESLint was complaining. Then I changed ignoreComments, but wasn't sure if that's "a bit too much of a change"? And then I saw this "multi-line @link pattern" in other places to I adjusted. :D
I'll change the ESLint config and fix these multi lines.
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.
If we have multi-line @links then they're all likely broken
| * @see {@link https://www.checklyhq.com/docs/detect/synthetic-monitoring/browser-checks/overview/ | ||
| * Browser Checks Documentation} |
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.
Keep as one line.
| * @see {@link https://www.checklyhq.com/docs/communicate/status-pages/incidents/#incident-automation | ||
| * Incident Automation} |
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.
Keep as one line.
| * @see {@link https://www.checklyhq.com/docs/communicate/dashboards/configuration/#custom-domain | ||
| * Custom Domain Setup} |
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.
One line.
Affected Components
Notes for the Reviewer
Context: https://checklyhq.slack.com/archives/C04PFSV5W3B/p1763590140631109
This PR fixes broken doc URLs in
checkly.rules.mdand, while I was at it, fixes all the TSDocs references. Note that some doc pages no longer exist. I removed the docs' references in this case and made a note to bring back the affected pages.