Skip to content
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

Prefer full reference links for intra-doc links #117178

Conversation

daxpedda
Copy link
Contributor

Unlike the RFC, Rustdoc supports interpreting full reference links as intra-doc links. It might make sense to prefer this over inline links as they might also imply a URL.

I'm happy to apply this preference across the code base, though a implementing a lint first might be preferable.

@rustbot
Copy link
Collaborator

rustbot commented Oct 25, 2023

r? @GuillaumeGomez

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 25, 2023
@GuillaumeGomez
Copy link
Member

GuillaumeGomez commented Oct 26, 2023

Discussion on zulip is here.

I added it to the rustdoc team agenda so it can be discussed.

@notgull
Copy link

notgull commented Jan 27, 2024

Any updates on this?

@GuillaumeGomez
Copy link
Member

It's still in the "to discuss" items list. Sorry, we don't go through very fast. ^^'

@fmease fmease added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools labels Feb 12, 2024
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Feb 13, 2024
…nk-chapter, r=notriddle

Extend intra-doc link chapter in the rustdoc book

Linked to rust-lang#117178.

r? `@notriddle`
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Feb 13, 2024
Rollup merge of rust-lang#121021 - GuillaumeGomez:extend-intra-doc-link-chapter, r=notriddle

Extend intra-doc link chapter in the rustdoc book

Linked to rust-lang#117178.

r? `@notriddle`
@GuillaumeGomez
Copy link
Member

GuillaumeGomez commented Feb 13, 2024

We decided in the last rustdoc meeting on zulip to not favor one syntax over the other. Instead we added a section in the rustdoc book mentioning what both syntaxes will result into (#121021).

Thanks for bringing this to our attention and for your work! We hope to see you again. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants