Skip to content

Simplify doc links#2987

Merged
197g merged 1 commit into
image-rs:mainfrom
RunDevelopment:simplify-doc-links
May 25, 2026
Merged

Simplify doc links#2987
197g merged 1 commit into
image-rs:mainfrom
RunDevelopment:simplify-doc-links

Conversation

@RunDevelopment
Copy link
Copy Markdown
Member

I didn't like that some doc links relied on HTML ids in and the page layout of rendered docs. These worked for rendered docs, but not in IDEs like VSCode. This was pretty annoying since I couldn't just just click on them.

This PR uses Rust item paths pretty much everywhere. E.g. Self::reserve instead of #method.reserve. This also has the advantage that dev (like me!) don't have to learn 2 syntaxes for links. It's the normal Rust item paths we write every day and not a rustdoc-specific path syntax

I also removed unnecessary references. E.g. [PngDecoder]: struct.PngDecoder.html when PngDecoder is in scope.

@197g 197g merged commit d749d81 into image-rs:main May 25, 2026
31 checks passed
@RunDevelopment RunDevelopment deleted the simplify-doc-links branch May 25, 2026 18:37
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.

2 participants