Skip to content

Replace bare link with markdown-style link to appease downstream Hugo/Vale linting #687

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

nathan-contino
Copy link
Member

Far downstream, the Viam docs ingest the Python SDK's docstrings into markdown.
The Python SDK ingests these .proto files and generates .pyi files with docstrings based on the comments here.
Our linter strongly dislikes bare links, breaking the docs build with an error if even one appears in our source markdown.
We've temporarily fixed the errors created by these bare links with downstream patches. But longer term, we'd like to avoid manually or automatically fixing these bare links each time we generate new markdown SDK docs.

tl;dr: docs build is picky, this fixes a problem at the source

Would you kindly consider changing these links to markdown formatting? I'm open to other solutions, and I know markdown formatting isn't perfect either, since these comments are otherwise written in plaintext. I'd like to preserve both the link for edification and our time/brittleness downstream. So if some other solution occurs to you, let me know.

@nicksanford introduced this link, and I hear through the grapevine that @JohnN193 might have a stance on this. If one of you could sanity check and review, I would appreciate it.

Tagging @stuqdog for context (but don't blame ethan for any mistakes I've made)

Thanks!

@dgottlieb dgottlieb added the safe to test committer is a member of this org label Apr 30, 2025
@nathan-contino
Copy link
Member Author

I am a public member of @viamrobotics , not sure why that test is failing 🤷

@@ -79,8 +79,8 @@ message GetPointCloudMapResponse {
// format where XY is the ground plane and positive Z is up, following
// the Right Hand Rule.
//
// Read more about the pointcloud format here:
// https://pointclouds.org/documentation/tutorials/pcd_file_format.html
Copy link
Member

Choose a reason for hiding this comment

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

only thought is if we should use something else besides "in the docs" since the link doesn't go to our docs. maybe "in the pcd file documentation"?

Copy link
Member Author

@nathan-contino nathan-contino Apr 30, 2025

Choose a reason for hiding this comment

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

I'm fine with that, and actually originally wrote it that way. But that exceeds the 80 character limit that this file otherwise respects, and if I split up the markdown link between two separate lines, I'm afraid it'll wind up getting broken downstream since the PYI files preserve whitespace by inserting manual (double) newlines directly into their docstrings.

Choose a door, @JohnN193 :

a) violate the 80 character limit?
b) risk a broken link downstream that is both ugly and doesn't fix the issue?
c) leave my admittedly sparse link text?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test committer is a member of this org
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants