Skip to content

Conversation

@mockersf
Copy link
Member

@mockersf mockersf commented May 6, 2023

Objective

  • Replace the example_showcase.sh script
  • Helper tool to prepare the example page on the website

Solution

  • Have a command to run all the examples: cargo run -p example-showcase -- run
  • Have a command to take screenshots of all examples: cargo run -p example-showcase -- run --screenshot
  • Have a command to build the markdown files for the website: cargo run -p example-showcase -- build-website-list --content-folder content
  • Have a command to build all the examples in wasm/WebGPU: cargo run -p example-showcase -- build-web-gpu-examples --content-folder webgpus (with --website-hacks to enable the hacks for the Bevy website: canvas id, resizing and loading bar)

This is the first step to an improved example page (all examples marked as wasm, uses the card layout, has screenshots, reuse name, category and description from the metadata). As one of the goal is to have a page with WebGPU examples before the official release, this is not touching the example page for now but targeting a new one.
Screenshot 2023-05-06 at 17 16 25

@mockersf mockersf added the C-Examples An addition or correction to our examples label May 6, 2023
@mockersf mockersf marked this pull request as draft May 6, 2023 19:32
@mockersf mockersf marked this pull request as ready for review May 6, 2023 19:51
@cart cart added this pull request to the merge queue May 8, 2023
Merged via the queue into bevyengine:main with commit 57fdb83 May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-Examples An addition or correction to our examples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants