Commit aeaafba
Link to required components docs in component type docs (#16687)
# Objective
#16575 moved required component docs from the `Component` impl to type
docs.
However, it doesn't actually link to what [required
components](https://docs.rs/bevy/0.15.0/bevy/ecs/component/trait.Component.html#required-components)
are and how they work.
## Solution
Link to [required
components](https://docs.rs/bevy/0.15.0/bevy/ecs/component/trait.Component.html#required-components)!
## Testing
I tested the link for some components in different Bevy crates. I did
not test in external third party crates, but I would assume that it
should work there too.
---
## Showcase

Note: The tooltip doesn't show the `#required-components` anchor for
some reason, but it is there.
---------
Co-authored-by: Alice Cecile <[email protected]>
Co-authored-by: SpecificProtagonist <[email protected]>1 parent 5442cf5 commit aeaafba
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
177 | 183 | | |
178 | 184 | | |
179 | 185 | | |
180 | 186 | | |
181 | 187 | | |
182 | 188 | | |
183 | | - | |
| 189 | + | |
184 | 190 | | |
185 | 191 | | |
186 | 192 | | |
| |||
0 commit comments