-
-
Notifications
You must be signed in to change notification settings - Fork 170
Add thorough documentation to helper functions and structs #416
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
Hi, thanks for filing this issue. Contributions to documentation are definitely very welcome! I think the examples you give of places that could use additional documentation and intra-doc links all sound like good additions. |
The links show which methods in `SystemTable` can be called to get a reference of each struct. rust-osdev#416
I just added a small amount of documentation that links I plan on slowly adding more documentation where I think it would be beneficial in the crate. Should I make a single pull request for each documentation change, or should I wait until I have more substantial changes to make a larger pull request? |
@raccog Thanks!
As you prefer. In theory, individual PRs are easier to review, but if you keep each commit atomic and with a relevant title, then the effort would be the same for us. |
@GabrielMajeri Great! I'll submit a small PR to start off and then go from there. |
The links show which methods in `SystemTable` can be called to get a reference of each struct. #416
Adds documentation for rust-osdev#416
These links now show that they link to functions in `SystemTable`. Fix documentation for rust-osdev#416
Add documentation for rust-osdev#416
Adds documentation for rust-osdev#416
These links now show that they link to functions in `SystemTable`. Fix documentation for rust-osdev#416
Add documentation for rust-osdev#416
Adds documentation for rust-osdev#416
These links now show that they link to functions in `SystemTable`. Fix documentation for rust-osdev#416
Add documentation for rust-osdev#416
These links now show that they link to functions in `SystemTable`. Fix documentation for #416
Add paragraph spacing for docs introduced in pull request rust-osdev#600 More documentation for issue rust-osdev#416
Add paragraph spacing for docs introduced in pull request rust-osdev#600 More documentation for issue rust-osdev#416
I think we fixed this. Feel free to re-open if something is missing with specific pointers. Thanks! |
Hello, I've been implementing a UEFI bootloader in Rust and really enjoy how this project is turning out! I was wondering if I could help contribute to the documentation, as there are some functions and structs that I feel could be better documented.
For example, I think it would be nice if helper functions like
get_image_file_system()
would describe both the possible errors that can occur and also which UEFI interfaces/functions are used. As helper functions like this are not described in the UEFI specification, it would be nice to be able to look at the crate documentation for detailed information.I also think that adding documentation on how to get an instance of each struct would be helpful, too. For example, the struct
BootServices
can be retrieved by callingboot_services()
onSystemTable
. Although examples such as this are described in the UEFI spec, it would be convenient to provide a link toboot_services()
fromBootService
's documentation. Another example is to provide a link toget_image_file_system()
andlocate_device_path()
(and other functions that can return aSimpleFileSystem
) inSimpleFileSystem
's documentation.I was also going to suggest adding documentation for why protocols are wrapped in
UnsafeCell
, but from the most recent commit, it seems like this is already covered!The text was updated successfully, but these errors were encountered: