Skip to content

Commit e8520c1

Browse files
authored
Added required features data to docs export (#21975)
# Objective This PR is a sister PR necessary for the website to have `required_features` data. You will find more information on the motivations there: bevyengine/bevy-website#2313 ## Solution - Add the required_features data to the examples docs export ## Testing I tested both together and it worked fine
1 parent 6cbc4b2 commit e8520c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/example-showcase/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ code_path = \"content/examples{}/{}\"
596596
shader_code_paths = {:?}
597597
github_code_path = \"{}\"
598598
header_message = \"Examples ({})\"
599+
required_features = {:?}
599600
+++
600601
601602
{}
@@ -637,6 +638,7 @@ header_message = \"Examples ({})\"
637638
WebApi::Webgpu => "WebGPU",
638639
WebApi::Webgl2 => "WebGL2",
639640
},
641+
to_show.required_features,
640642
docblock,
641643
)
642644
.as_bytes(),

0 commit comments

Comments
 (0)