From ec47ee66557183ab93902198b0459197e35f5b40 Mon Sep 17 00:00:00 2001 From: Ulises Gascon Date: Sun, 8 Dec 2024 02:49:52 +0100 Subject: [PATCH] feat: add support tags in implementations --- scripts/populate-implementations.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/populate-implementations.js b/scripts/populate-implementations.js index d01f024..99b734e 100644 --- a/scripts/populate-implementations.js +++ b/scripts/populate-implementations.js @@ -20,7 +20,7 @@ projectStatus.forEach(status => { // Populate the data object checks -// @TODO: Remove this sort when the checks.json is sorted when generated in the dashboard script + // @TODO: Remove this sort when the checks.json is sorted when generated in the dashboard script .sort((a, b) => a.id - b.id) .forEach(item => projectStatus.forEach(status => { @@ -40,12 +40,15 @@ const addRow = (item) => `| ${item.section_number}. ${capitalizeWords(item.secti // Prepare the markdown files projectStatus.forEach((status, index) => { let fileContent = `--- + sidebar_position: ${index + 1} id: ${status} title: ${status.charAt(0).toUpperCase() + status.slice(1)} slug: /implementations/${status} + --- + ` fileContent += implementationPriority.map(priority => { @@ -58,6 +61,8 @@ ${data[status][priority].map(addRow).join('\n')} ` }).join('\n') + fileContent += '' + const destination = path.join(process.cwd(), `docs/implementation/${status}.mdx`) writeFileSync(destination, fileContent) })