Skip to content

Remove crate version from docs.rs #158

Closed
@sunjay

Description

@sunjay
Member

Is there a way to remove certain versions of a crate from docs.rs?

Activity

onur

onur commented on Oct 6, 2017

@onur
Member

Currently there isn't a way to remove crates from docs.rs. I am planning to add a method to check yanked crates and show a warning or remove the crate completely from docs.rs.

For now, I can manually remove the crate if there is an urgency.

sunjay

sunjay commented on Oct 6, 2017

@sunjay
MemberAuthor

Could you remove the yanked versions of the turtle crate? That's currently all the versions.

Thanks

pravic

pravic commented on Sep 1, 2018

@pravic
jyn514

jyn514 commented on Feb 1, 2020

@jyn514
Member

We've since redirected the docs for yanked crates for the latest version. It would be nice to add a badge saying that the crate has been yanked e.g. on https://docs.rs/crate/futures/0.2.3-docs-yank.4.

jyn514

jyn514 commented on Feb 1, 2020

@jyn514
Member

Oops, I think that might have been done by futures in their docs actually. We have a long way to go for handling yanks 😅

See also #112, #322 , #561

Nemo157

Nemo157 commented on May 6, 2020

@Nemo157
Member

@sunjay with #614 fixed so that the yanked status of 0.1.* is updated, do you still want the docs fully removed? The old versions show warnings that they are yanked and suggest redirecting to the prereleases.

sunjay

sunjay commented on May 6, 2020

@sunjay
MemberAuthor

@sunjay with #614 fixed so that the yanked status of 0.1.* is updated, do you still want the docs fully removed?

Yes, that would be great. Those versions were for a different crate that used to use that name. Removing them will avoid some confusion so please do that. Thanks!

changed the title [-]Remove crate from docs.rs[/-] [+]Remove crate version from docs.rs[/+] on May 6, 2020
jyn514

jyn514 commented on May 6, 2020

@jyn514
Member

We have a way to delete entire crates (delete-crate), but it sounds like you're asking for specific versions to be removed which is a little harder.

sunjay

sunjay commented on May 6, 2020

@sunjay
MemberAuthor

Yes. I only want the 0.x versions removed. Back when this issue was created those were the only versions. 😅

pietroalbini

pietroalbini commented on May 6, 2020

@pietroalbini
Member

I'm wondering if we should just hide the documentation of all yanked crates.

jyn514

jyn514 commented on May 6, 2020

@jyn514
Member

Currently what we do is we don't show them unless you explicitly go to the link, and all the links to it have a big warning sign in addition to the 'this crate has been yanked' banner.

image

image

We could also hide the link to the yanked version if you like, but I'm starting to question how applicable this is to other use cases, it seems a little specific to turtle.

sunjay

sunjay commented on May 6, 2020

@sunjay
MemberAuthor

Yeah I'd be fine with them just being deleted for the turtle crate. I can see why building something more general might cause unexpected issues.

Kixiron

Kixiron commented on May 7, 2020

@Kixiron
Member

I'm not necessarily against hiding (and potentially deleting, we need to do an audit of how much space is taken up by yanked crates) yanked docs, but it'll inevitably bring up the question/objection that we aren't supposed to be the ones who decide that docs aren't shown. Like I said, I'm not against it though, as I personally feel like someone who's using yanked crates can be reasonably expected to build docs locally and I think it'd get rid of what is basically a class of issues and considerations that have to come up so often

122 remaining items

Loading
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Nemo157@onur@sunjay@pravic@pietroalbini

        Issue actions

          Remove crate version from docs.rs · Issue #158 · rust-lang/docs.rs