-
Notifications
You must be signed in to change notification settings - Fork 234
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
Forbid full internal links #14016
base: master
Are you sure you want to change the base?
Forbid full internal links #14016
Conversation
d4d1e4f
to
89a6d85
Compare
c67286b
to
265e0e4
Compare
265e0e4
to
de7e9d4
Compare
This is motivated by #14006 (comment).
The lint can be fixed cleanly with: ```sh make lint | rg '/Users/.*.md' -o | xargs gsed -i 's#](https://www.pulumi.com/registry#](/registry#g; s#](https://www.pulumi.com/docs#](/docs#g' ``` It walks `sed` over every file that fails the lint and applies two corrections: - `](https://www.pulumi.com/registry` -> `/registry` - `](https://www.pulumi.com/docs` -> `](/docs` The leading `](` ensures that the text is part of a markdown link.
de7e9d4
to
8dbf582
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Your site preview for commit 8dbf582 is ready! 🎉 http://www-testing-pulumi-docs-origin-pr-14016-8dbf582c.s3-website.us-west-2.amazonaws.com. |
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.
Overall, the change looks good. Thanks for adding a lint rule! I'm concerned there might be valid places where relative links don't work and the fully qualified url might be necessary.
I'd like to see every changed link tested to ensure we aren't introducing new broken links that are invisible to our automation/relative linking strategy. For that, I'd suggest a one-time manual check of each link changed as part of this PR, to make sure they are still working. I rough glance suggests this is about 50 links to check. Tedious, but not too bad.
I'd be very surprised if this was the case, but it's theoretically possible. I believe that interpreting
We already have automation that monitors broken links in the
The diff for 8dbf582 is |
This PR is best reviewed commit by commit:
https://www.pulumi.com/{registry,docs}/
).