Skip to content

Commit

Permalink
Relationship(…Target) html trait tag (#18140)
Browse files Browse the repository at this point in the history
# Objective

Fixes #18117

These are component subtraits, but unlike for `Event` (before that bound
got removed) this still shows it as a component because it's actually
used as such.

## Testing

```sh
 RUSTDOCFLAGS="--html-after-content docs-rs/trait-tags.html --cfg docsrs_dep" RUSTFLAGS="--cfg docsrs_dep" cargo doc --no-deps --package bevy_ecs
```

---

## Showcase

![Screenshot from 2025-03-03
17-31-24](https://github.com/user-attachments/assets/4b152b3f-f9c3-4ee6-a3d4-ad10f09040b6)
  • Loading branch information
SpecificProtagonist authored Mar 4, 2025
1 parent 7a1972e commit d0caea0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs-rs/trait-tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
'ScheduleLabel',
'SystemSet',
'SystemParam',
'Relationship',
'RelationshipTarget'
];

// Find all traits that are implemented by the current type.
Expand Down Expand Up @@ -138,7 +140,7 @@
}

.resource-tag {
--tag-color: oklch(50% 27% 130);
--tag-color: oklch(50% 27% 110);
}

.asset-tag {
Expand All @@ -162,4 +164,9 @@
.systemparam-tag {
--tag-color: oklch(50% 27% 200);
}

.relationship-tag,
.relationshiptarget-tag {
--tag-color: oklch(50% 27% 150);
}
</style>

0 comments on commit d0caea0

Please sign in to comment.