Skip to content

rustdoc: copy version number when click #111143

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
khuongduy354 opened this issue Apr 21, 2023 · 4 comments · May be fixed by #130374
Open

rustdoc: copy version number when click #111143

khuongduy354 opened this issue Apr 21, 2023 · 4 comments · May be fixed by #130374
Labels
A-rustdoc-js Area: Rustdoc's JS front-end A-rustdoc-ui Area: Rustdoc UI (generated HTML) T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@khuongduy354
Copy link

Just a small suggestion, adding an option, when click on the version, version number got copied, it's easier for people to paste into Cargo.toml.

image

@syphar
Copy link
Member

syphar commented Apr 21, 2023

Hi,

how would you imagine this to work together with the menu?

In general we already have that feature, only on our crate-page:
grafik

@syphar
Copy link
Member

syphar commented Apr 21, 2023

( and the "copy" button here copies exactly the line needed for your Cargo.toml)

@Nemo157
Copy link
Member

Nemo157 commented May 3, 2023

Do you mean the version number in the sidebar? That's generated by rustdoc not docs.rs, if so I can transfer the issue over.

@khuongduy354
Copy link
Author

khuongduy354 commented May 3, 2023 via email

@Nemo157 Nemo157 transferred this issue from rust-lang/docs.rs May 3, 2023
@Nemo157 Nemo157 added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label May 3, 2023
@Nemo157 Nemo157 changed the title Tiny improve: copy version number when click rustdoc: copy version number when click May 3, 2023
@Nemo157 Nemo157 added A-rustdoc-ui Area: Rustdoc UI (generated HTML) A-rustdoc-js Area: Rustdoc's JS front-end labels May 3, 2023
@MeetThePatel MeetThePatel linked a pull request Sep 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rustdoc-js Area: Rustdoc's JS front-end A-rustdoc-ui Area: Rustdoc UI (generated HTML) T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants