-
Notifications
You must be signed in to change notification settings - Fork 88
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
Rework rustdocs #353
Comments
Hi Martin, I'm taking a Virtualization course at UT Austin and we've been asked to contribute to open-source virtualization repositories for one of our projects. Could I take a shot at resolving this issue? |
Sure! More documentation is always welcome 👍 |
719: Add basic docs for timer and semaphore syscalls r=stlankes a=nathanwhyte Helping with issue #353 Added _(very)_ basic documentation to syscalls in [`timer.rs`](https://github.com/hermitcore/libhermit-rs/blob/master/src/syscalls/timer.rs) and [`semaphore.rs`](https://github.com/hermitcore/libhermit-rs/blob/master/src/syscalls/semaphore.rs) I used Linux man pages as a reference when writing these. Co-authored-by: Nathan Whyte <[email protected]>
There are quite a few links in the docs that were broken after code reorganization as the file URLs were invalidated. We can fix at least some of these by using intra-doc linking now that it's available. We can use cargo-deadlinks as a CI check to avoid such a situation in the future or at least for finding the broken links during the migration. We can also use cargo-intraconv to convert the old style links that currently work but are susceptible to breakage in a future refactoring. |
What kind of links are broken? Do you have examples? I don't think the mentioned crates are necessary, but that may change once I understand the problem better. |
For example, in this line linked struct was renamed from
Another example is the structs getting moved to another file and the relative URL changing from structs.PackedVq.html to packed/structs.PackedVq.html kernel/src/drivers/virtio/virtqueue/mod.rs Line 111 in a2f521f
cargo-deadlinks lists 73 broken file:// URLs inside the To be clear, the two aforementioned packages would not be introduced as dependencies: I linked them partly to document them for later when I get a chance to look into the issue. Running cargo-intraconv after converting the existing links should not be necessary, as I would expect documentation added from now on to use intra-doc links from the get-go. cargo-deadlinks should also not be necessary, unless it turns out some of the file:// links cannot be converted to intra-doc links. Even in that case, it is not really necessary to make it a part of the CI workflow, since the kinds of changes that cause link breakages shouldn't be frequent. |
Okay, makes sense. I was thinking the same. In the future, we'll make sure that we always use intra-doc links. 👍 |
The text was updated successfully, but these errors were encountered: