Code Monkey home page Code Monkey logo

Comments (4)

onur avatar onur commented on July 20, 2024

Thanks for reporting.

I am not sure what is causing this. This link is working fine: https://docs.rs/either/1/either/enum.Either.html

And main.js is trying this:

    var query = getQueryStringParams();
    if (query['gotosrc']) {
        window.location = $('#src-' + query['gotosrc']).attr('href');
    }

Looks like there is no link with a id='src-10' attribute (there is one with src-11. This link is correct and working fine: https://docs.rs/either/1/either/enum.Either.html?gotosrc=11). I am not sure if this is a bug in rustdoc or docs.rs

from docs.rs.

bluss avatar bluss commented on July 20, 2024

I see, so it was pretty close to working. If I generate docs for both crates together, it ends up using src-10 in the either crate and the link works. Probably a rustdoc bug.

On the Either.html page it generates src-11 when I build the either crate's docs in their own crate, and src-10 when I build docs as a dep of itertools.

from docs.rs.

Kixiron avatar Kixiron commented on July 20, 2024

Closing as this now works as intended

from docs.rs.

jyn514 avatar jyn514 commented on July 20, 2024

Note that the link for itertools 0.5.0 now redirects to the doc homepage for either which is not ideal but better than a 404. The link for the latest version of itertools works fine: https://docs.rs/itertools/0.9.0/itertools/enum.Either.html links to https://docs.rs/either/1.5.3/src/either/lib.rs.html#44-49. Still not sure if this was originally a rustdoc bug or a docs.rs bug, but it seems to be fixed now.

from docs.rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.