Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Broken link to unstable book in rustc_plugin API docs #57489

Closed

Description

@fkohlgrueber

The documentation of rustc_plugin links to the plugin feature in the unstable book, but that link is broken.

It points to:
https://doc.rust-lang.org/nightly/nightly-rustc/unstable-book/language-features/plugin.html

While the correct link would be:
https://doc.rust-lang.org/nightly/unstable-book/language-features/plugin.html

In the source, the link is relative:
../unstable-book/language-features/plugin.html

I'd be interested in fixing this, but I don't know whether a relative or absolute link is better in this situation.

Activity

  1. steveklabnik commented on Jan 10, 2019

    @steveklabnik
    Contributor
  2. fkohlgrueber commented on Jan 11, 2019

    @fkohlgrueber
    ContributorAuthor

    The rustc api documentation doesn't get build locally by default, right?

    I could replace the relative link with ../../unstable-book/language-features/plugin.html which should work for the hosted paths I showed above, but I don't know whether this works for the local use-case as well. Do you have any suggestions?

  3. added
    E-easy
    A-docs
    on Jan 26, 2019
  4. polybuildr commented on Mar 24, 2019

    @polybuildr
    Contributor

    @fkohlgrueber, I wasn't able to find the docs for rustc_plugin locally by default (using locate) so it seems likely that you're correct. It also seems quite likely that the path change you've proposed will work just as well for local installations, so I'd suggest going ahead and making a PR and then the reviewer(s) can comment on whether the solution is acceptable.

  5. agnxy commented on Apr 14, 2019

    @agnxy
    Contributor

    I tried to build rustc_plugin doc and the unstable book. The rustc_plugin doc lives at
    build/x86_64-unknown-linux-gnu/compiler-doc/rustc_plugin/index.html and the link which points to the local unstable book is build/x86_64-unknown-linux-gnu/doc/unstable-book/language-features/plugin.html. So the correct relative path is different from the online docs.
    I'm new to Rust documentation. There might be something I'm missing here 😄

  6. agnxy commented on Apr 20, 2019

    @agnxy
    Contributor

    I created a PR for further discussion. The fix replaces the broken link with a correct absolute link as suggested in the comment.

  7. added a commit that references this issue on May 5, 2019
    577b0b9
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-docsE-easy

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions