# Objective Add extra metadata for the shader examples that contains the location of their associated shader file(s). This is to be used for the bevy website shader examples so that the shader code is underneath the rust code. ## Solution Parse the example rust files for mentions of `.wgsl`, `.frag`, and `.vert`, then append the found paths to a field called `shader_code_paths` in the generated `index.md`s for each shader example.
		
			
				
	
	
		
			24 lines
		
	
	
		
			529 B
		
	
	
	
		
			TOML
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			529 B
		
	
	
	
		
			TOML
		
	
	
	
	
	
[package]
 | 
						|
name = "example-showcase"
 | 
						|
edition = "2021"
 | 
						|
description = "Tool for running examples or generating a showcase page for the website."
 | 
						|
publish = false
 | 
						|
license = "MIT OR Apache-2.0"
 | 
						|
 | 
						|
[dependencies]
 | 
						|
xshell = "0.2"
 | 
						|
clap = { version = "4.0", features = ["derive"] }
 | 
						|
ron = "0.8"
 | 
						|
toml_edit = { version = "0.22.7", default-features = false, features = [
 | 
						|
  "parse",
 | 
						|
] }
 | 
						|
pbr = "1.1"
 | 
						|
regex = "1.10.5"
 | 
						|
 | 
						|
[lints]
 | 
						|
workspace = true
 | 
						|
 | 
						|
[package.metadata.docs.rs]
 | 
						|
rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"]
 | 
						|
all-features = true
 |