bevy/tools
Asier Illarramendi 7e18356da6 Split example file docblock and code when generating web examples markdown (#18191)
# Objective

Separate example explanation (file docblock) and the code so they can be
layout differently in the website and we can give a higher importance to
the explanation on the [website search
tool](https://github.com/bevyengine/bevy-website/pull/1935). This would
also allow us to improve the examples so they become even more like a
cookbook.

## Solution

Update the `example-showcase` tool to extract the example file docblock
and write it as the example markdown content. This allows us to access
the explanation via `page.content` in Zola.

## Testing

I've checked that the output is correct after running the tool and it
doesn't throw any error. I've also validated that the approach will work
on the website.

## Showcase

This is a quick and dirty example of what we could do in the web
examples after the change. When we implement the real thing we can put
the explanation on a sidebar or explore other layout options.

<img width="1362" alt="image"
src="https://github.com/user-attachments/assets/6738542e-31c3-41cd-972a-7fa2e942e85d"
/>
2025-03-19 21:36:18 +01:00
..
build-easefunction-graphs Add print_stdout and print_stderr lints (#17446) (#18233) 2025-03-11 19:35:48 +00:00
build-templated-pages Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
build-wasm-example Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
ci Add no_std support to bevy (#17955) 2025-03-07 03:39:46 +00:00
compile_fail_utils Update ui_test requirement from 0.23.0 to 0.29.1 (#18289) 2025-03-13 16:34:33 +00:00
example-showcase Split example file docblock and code when generating web examples markdown (#18191) 2025-03-19 21:36:18 +01:00
publish.sh prepare publish script 2025-03-18 21:48:22 +01:00