Skip to content
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

docs: link to rust items by name #213

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

eric-seppanen
Copy link
Contributor

  • For items that are in scope, remove the explicit html path.
  • For items not in scope, link to them by a rust path that does work (e.g. crate::Watches or libc::read).
  • Fix incorrect reference WatchMask::IGNORED -> EventMask::IGNORED.
  • Replace verbose [https://some-url/](https://some-url/) with the equivalent <https://some-url/>.

This fixes many broken links (some always broken, some only broken on docs.rs), and makes them more robust in the future (rustdoc emits warnings most items that don't resolve.)

Fixes #212.

- For items that are in scope, remove the explicit html path.
- For items not in scope, link to them by a rust path that does work
  (e.g. `crate::Watches` or `libc::read`).
- Fix incorrect reference `WatchMask::IGNORED` -> `EventMask::IGNORED`.
- Replace verbose `[https://some-url/](https://some-url/)` with
  the equivalent `<https://some-url/>`.

This fixes many broken links (some always broken, some only broken on
docs.rs), and makes them more robust in the future (rustdoc emits
warnings most items that don't resolve.)
Copy link
Owner

@hannobraun hannobraun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @eric-seppanen, looking good!

I only took a quick look at at the diff and didn't actually test any links. It's getting late here, and if I don't review this now, I'll probably not get to it until some time next week. But whether everything works perfectly or not, this is definitely taking things in the right direction, so I'm happy to merge!

@hannobraun hannobraun merged commit 90defd7 into hannobraun:main Feb 9, 2024
2 checks passed
@hannobraun
Copy link
Owner

It would be good to prevent this from happening again in the future. I've opened #214.

@eric-seppanen eric-seppanen deleted the improve_doc_links branch February 9, 2024 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docs.rs links from inotify to inotify_sys are broken
2 participants