-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add rustdos and intra-doc links to media.rs #144
Conversation
@microsoft-github-policy-service agree company="Microsoft" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for creating the PR.
See below:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general it looks good to me.
See below:
//! - [`mount_parse_ovf_env`]: A function to mount a media device, read its OVF environment data, and return the parsed data. | ||
//! - [`get_mount_device`]: A function to retrieve a list of mounted devices with CDROM-type filesystems. | ||
//! | ||
//! [`Media`]: struct.Media.html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the OVF link above
[`OVF`]: https://www.dmtf.org/standards/ovf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, please check :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
One minor note:
In general it is better to start working on your local branch, not with main
, but with a different name. That makes reviewers easier to check out your changes to their local repos, for their own testing. If you create a PR from main
, then reviewers would need to do something like git checkout -B john15321-rustdocs john15321/main
to check out, which is confusing.
Co-authored-by: Dongsu Park <dongsu@mailbox.org>
* Add rustdocs to basic structs * add rustdoc for get_mount_devices * Add rustdocs for parse_ovf_env and read_ovf_env_to_string * Add some more rustdocs and tests * Fixes * Add module level rustdoc * Update libazureinit/src/media.rs * Add more links Co-authored-by: Dongsu Park <dpark@linux.microsoft.com>
This PR adds comprehensive Rustdoc comments to the
media.rs
module, including descriptions and examples for all structs, functions, and constants. It also introduces intra-doc links for easier navigation. The module-level documentation has been enhanced to provide a clear overview and usage examples. Due to the current lack of mocking, some functions remain testless, but this will be addressed in a later PR.