-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Fix intra-doc links and make CI test them #14076
Conversation
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.
Sorry if the comments are a bit out of order, at some point Github wanted me to refresh the page and I lost some comments so I had to re-add them later on.
/// A [`bevy_render::render_graph::Node`] that runs the [`Opaque3d`] | ||
/// [`BinnedRenderPhase`] and [`AlphaMask3d`] | ||
/// [`bevy_render::render_phase::SortedRenderPhase`]s. | ||
/// A [`bevy_render::render_graph::Node`] that runs the [`Opaque3d`] and [`AlphaMask3d`] | ||
/// [`ViewBinnedRenderPhases`]s. |
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.
I'm not familiar with the render pipelines, but from the code below it seems ViewBinnedRenderPhases
was being used and not BinnedRenderPhase
or SortedRenderPhase
/// [`SortedRenderPhase`]. | ||
/// [`ViewSortedRenderPhases`]. |
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.
Similarly here.
/// [`SortedRenderPhase`]. | ||
/// [`ViewSortedRenderPhases`]. |
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.
And here.
/// Calls both [`World::flush_entities`] and [`World::flush_commands`]. | ||
/// Flushes queued entities and calls [`World::flush_commands`]. |
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.
World::flush_entities
is private so I removed the reference.
/// The [`winit::event_loop::EventLoopProxy`] with the specific [`winit::event::Event::UserEvent`] used in the [`winit_runner`]. | ||
/// A re-export of [`winit::event_loop::EventLoopProxy`]. |
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.
The old description didn't seem to make much sense, and also it referenced winit_runner
which is private.
/// An error that occurs when attempting to call [`LoadContext::load_direct`] | ||
/// An error that occurs when attempting to call [`DirectNestedLoader::load`](crate::DirectNestedLoader::load) |
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.
I didn't find any LoadContext::load_direct
, the closest thing where this is used seemed to be DirectNestedLoader::load
but I'm not sure it's correct.
/// [`Entity`] while reserving extra generations via [`crate::entity::Entities::reserve_generations`]. Because this | ||
/// renders the [`SceneEntityMapper`] unable to safely allocate any more references, this method takes ownership of | ||
/// `self` in order to render it unusable. | ||
/// [`Entity`] while reserving extra generations. Because this makes the [`SceneEntityMapper`] unable to | ||
/// safely allocate any more references, this method takes ownership of `self` in order to render it unusable. |
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.
Entities::reserve_generations
is private so I removed the reference.
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.
From a quick pass this looks good, though I didn't have the time to make a thorough check.
Tell me when this is green? This is definitely an improvement over the state of things and we should get it merged before it rots. |
Seems like doc errors are more frequent than expected seeing how 3 PRs introduced them in the span of just 2 weeks. I should have fixed the new errors, hopefully CI is green is ~10 minutes. I would like to merge this as soon as possible to prevent further errors which will block this PR even more. |
Objective
Solution
cargo r -p ci -- doc-check
check fail on warnings (could also be changed to just some specific lints)