Skip to content

Add command line option to print URL/path/link to generated documentation #5562

@cpick

Description

@cpick

I use cargo doc --open to generate/update docs and open them in a browser, but often I want to view them in a non-default browser. Sometimes I want to use the viewer built into my IDE, sometimes I'm testing out a new browser, etc.

It would be nice if either cargo doc printed the URL/path/link to the newly generated docs when it was done (similar to how cargo test prints "Running target/debug/deps/foo"), or if a new option like cargo doc --link, cargo doc --url, etc could be added to do this.

If either of these sounds like a reasonable idea I could take a crack at putting a pull request together?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-doc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions