Skip to content

Conversation

@stefanjudis
Copy link
Collaborator

Affected Components

  • CLI
  • Create CLI
  • Test
  • Docs
  • Examples
  • Other

Notes for the Reviewer

Context: https://checklyhq.slack.com/archives/C04PFSV5W3B/p1763590140631109

This PR fixes broken doc URLs in checkly.rules.md and, 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.

* })
* ```
*
* @see {@link https://www.checklyhq.com/docs/cli/constructs-reference/#alertchannel | AlertChannel API Reference}
Copy link
Collaborator Author

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}
*/
/**
Copy link
Collaborator Author

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.

Comment on lines +140 to +141
* @see {@link https://www.checklyhq.com/docs/detect/synthetic-monitoring/api-checks/overview/
* API Checks Documentation}
Copy link
Member

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.

Suggested change
* @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,
      },
    ],

Copy link
Collaborator Author

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.

Copy link
Member

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

Comment on lines +76 to +77
* @see {@link https://www.checklyhq.com/docs/detect/synthetic-monitoring/browser-checks/overview/
* Browser Checks Documentation}
Copy link
Member

Choose a reason for hiding this comment

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

Keep as one line.

Comment on lines +229 to +230
* @see {@link https://www.checklyhq.com/docs/communicate/status-pages/incidents/#incident-automation
* Incident Automation}
Copy link
Member

Choose a reason for hiding this comment

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

Keep as one line.

Comment on lines +48 to +49
* @see {@link https://www.checklyhq.com/docs/communicate/dashboards/configuration/#custom-domain
* Custom Domain Setup}
Copy link
Member

Choose a reason for hiding this comment

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

One line.

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.

3 participants