-
Notifications
You must be signed in to change notification settings - Fork 2.6k
doc: make root directory configurable #10089
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Should |
My instinct is the latter. Just like |
My impression is that As I understand it,
Currently, the I'd be up for implementing this, I just wonder if it would get accepted since it adds a bit more complexity to cargo that will need to be maintained/documented: cargo doc
cp -r target/doc/ <dir> |
Yeah, that's a good point — I think I like I think this should introduce too much complexity, and is a worthwhile feature, so my personal guess is that a contribution would be welcomed, but I don't speak for the Cargo team, so they'd have to chime in :) |
I like it! To bike-shed a little bit more, how about |
I am not entirely sure what the difference between |
Should the I have implemented this feature at https://github.com/basile-henry/cargo/tree/basile-henry/doc-publish if you want to try it before I open a PR. |
Hmm.. I think it should add to whatever is in that directory already so that I can, say, run |
Alright, that is the behaviour I went with. 👍 |
Problem
For
cargo install
, we have[install] root = ".."
, which allows the configuration (or a command-line flag) to dictate where the documentation should end up. It'd be nice to have a similar configuration option to allow customizing Cargo so that it directly generates its documentation into, say, a directory that's being served up by a local web server already.Proposed Solution
Add a new
root
key to[doc]
, and a corresponding--root
argument tocargo doc
that dictates where the generated documentation should be placed.Notes
No response
The text was updated successfully, but these errors were encountered: