From cdfb9d7a0be1b45327b5da2dcbc2d44149222135 Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 4 Aug 2025 19:29:28 +0200 Subject: [PATCH] Added some notes for example collection `validation` --- examples/rexm.c | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/examples/rexm.c b/examples/rexm.c index 2f95e4000..3ed90f20c 100644 --- a/examples/rexm.c +++ b/examples/rexm.c @@ -622,21 +622,29 @@ int main(int argc, char *argv[]) } break; case 5: // Validate { - // TODO: Validate examples collection against [examples_list.txt] - - // Validate: raylib/examples//_example_name.c - // Validate: raylib/examples//_example_name.png - // Validate: raylib/examples//resources/.. -> Not possible for now... - // Validate: raylib/examples/Makefile - // Validate: raylib/examples/Makefile.Web - // Validate: raylib/examples/README.md - // Validate: raylib/projects/VS2022/examples/_example_name.vcxproj - // Validate: raylib/projects/VS2022/raylib.sln - // Validate: raylib.com/common/examples.js - // Validate: raylib.com/examples//_example_name.html - // Validate: raylib.com/examples//_example_name.data - // Validate: raylib.com/examples//_example_name.wasm - // Validate: raylib.com/examples//_example_name.js + // TODO: Validate examples in collection list [examples_list.txt] -> Source of truth! + // Validate: raylib/examples//_example_name.c -> File exists? + // Validate: raylib/examples//_example_name.png -> File exists? + // Validate: raylib/examples//resources/.. -> Example resources available? + // Validate: raylib/examples/Makefile -> Example listed? + // Validate: raylib/examples/Makefile.Web -> Example listed? + // Validate: raylib/examples/README.md -> Example listed? + // Validate: raylib/projects/VS2022/examples/_example_name.vcxproj -> File exists? + // Validate: raylib/projects/VS2022/raylib.sln -> Example listed? + // Validate: raylib.com/common/examples.js -> Example listed? + // Validate: raylib.com/examples//_example_name.html -> File exists? + // Validate: raylib.com/examples//_example_name.data -> File exists? + // Validate: raylib.com/examples//_example_name.wasm -> File exists? + // Validate: raylib.com/examples//_example_name.js -> File exists? + + // Additional validation elements + // Validate: Example naming conventions: /_example_name + // Validate: Duplicate entries in collection list + // Validate: Example info (stars, author, github) missmatches with example content + + // After validation, update required files for consistency + // Update files: Makefile, Makefile.Web, README.md, examples.js + UpdateRequiredFiles(); } break; default: // Help