Back to all reviewers

Clean documentation links

unionlabs/union
Based on 2 comments
Rust

When writing Rust documentation links, separate the display name from the full path to improve readability of generated docs. Use the short type name as the display text and provide the full path as the link target. This makes the documentation less noisy and easier to read.

Documentation Rust

Reviewer Prompt

When writing Rust documentation links, separate the display name from the full path to improve readability of generated docs. Use the short type name as the display text and provide the full path as the link target. This makes the documentation less noisy and easier to read.

Pattern to follow:

// Instead of this (noisy):
/// The returned [`Op`] ***MUST*** resolve to an [`crate::data::OrderedHeaders`] data.

// Use this (clean):
/// The returned [`Op`] ***MUST*** resolve to an [`OrderedHeaders`][crate::data::OrderedHeaders] data.

This approach keeps the inline text readable while still providing the full path information needed for proper linking in the generated documentation.

2
Comments Analyzed
Rust
Primary Language
Documentation
Category

Source Discussions