Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5208,6 +5208,9 @@ rustdoc-args = [
"docs-rs/trait-tags.html",
]
all-features = true
# approximately equal comand for docs.rs like build locally
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is helpful context, but I'm not sure this is the place to drop docs like this. This file is too big to discover something like this. Probably belongs in a "doc contributor guide" or something.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fair, i mostly put it in there orignally for myself to copy to render the docs (see the link in the PR). Then i thought yea this could be useful to others. It doesn't even need to be parr of this PR, i'm fine with removing it

# excluding example scraping and adding mergable info for compile speed
# cargo doc --lib -Zrustdoc-mergeable-info --config 'build.rustflags=["--cfg", "docsrs_dep"]' -Zhost-config -Ztarget-applies-to-host --config 'host.rustflags=["--cfg", "docsrs_dep"]' --config 'build.rustdocflags=["-Zunstable-options", "--generate-link-to-definition", "--generate-macro-expansion", "--html-after-content", "./docs-rs/trait-tags.html"]' --no-deps -p bevy --all-features

[[example]]
name = "monitor_info"
Expand Down
2 changes: 2 additions & 0 deletions crates/bevy_ecs/src/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,8 @@ impl<T: Clone + Default + Unpin> FromTemplate for T {
pub trait SpecializeFromTemplate: Sized {}

/// A [`Template`] reference to an [`Entity`].
///
/// This is only valid during scene spawning and should **never** be used as a [`Component`](bevy_ecs::prelude::Component) field.
#[derive(Copy, Clone, Default, Debug)]
pub enum EntityTemplate {
/// A reference to a specific [`Entity`]
Expand Down
Loading
Loading