diff --git a/scripts/json-files-script.cjs b/scripts/json-files-script.cjs index 8523e17f7..f6aeeb54b 100644 --- a/scripts/json-files-script.cjs +++ b/scripts/json-files-script.cjs @@ -30,8 +30,10 @@ function getDirNames(directory) { return fs.readdirSync(directory, { withFileTypes: true }) // Filter out only the directories from the list of files and directories .filter(dirent => dirent.isDirectory()) - // Map the directory names to lowercase to standardise them - .map(dirent => dirent.name); + // Convert directory names to lowercase so the generated grouping stays consistent + .map(dirent => dirent.name.toLowerCase()) + // Sort the names so the output is stable and easier to compare + .sort(); } // ------------------------------------------------------------------------------ diff --git a/src/content/docs/guides/Camera/1-dynamic-camera-control.mdx b/src/content/docs/guides/camera/1-dynamic-camera-control.mdx similarity index 100% rename from src/content/docs/guides/Camera/1-dynamic-camera-control.mdx rename to src/content/docs/guides/camera/1-dynamic-camera-control.mdx diff --git a/src/content/docs/guides/Graphics/2-shape-modelling.mdx b/src/content/docs/guides/graphics/2-shape-modelling.mdx similarity index 100% rename from src/content/docs/guides/Graphics/2-shape-modelling.mdx rename to src/content/docs/guides/graphics/2-shape-modelling.mdx