Skip to content

rustdoc: copy version number when click #111143

@khuongduy354

Description

@khuongduy354

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

Activity

syphar

syphar commented on Apr 21, 2023

@syphar
Member

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

syphar commented on Apr 21, 2023

@syphar
Member

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

Nemo157

Nemo157 commented on May 3, 2023

@Nemo157
Member

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

khuongduy354 commented on May 3, 2023

@khuongduy354
Author
transferred this issue fromrust-lang/docs.rson May 3, 2023
added
T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
on May 3, 2023
changed the title [-]Tiny improve: copy version number when click[/-] [+]rustdoc: copy version number when click[/+] on May 3, 2023
linked a pull request that will close this issue on Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-jsArea: Rustdoc's JS front-endA-rustdoc-uiArea: Rustdoc UI (generated HTML)T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @Nemo157@syphar@khuongduy354

      Issue actions

        rustdoc: copy version number when click · Issue #111143 · rust-lang/rust