From 2ab70041fd27801f9cf7f6bd1e59df7eb3b6c50a Mon Sep 17 00:00:00 2001 From: Conduitry Date: Thu, 31 Oct 2024 22:44:39 -0400 Subject: [PATCH] chore: mark markdown output from process-messages as generated (#13913) * chore: mark markdown output from process-messages as generated * regenerate --- .../98-reference/.generated/client-errors.md | 2 ++ .../.generated/client-warnings.md | 2 ++ .../98-reference/.generated/compile-errors.md | 2 ++ .../.generated/compile-warnings.md | 2 ++ .../98-reference/.generated/server-errors.md | 2 ++ .../98-reference/.generated/shared-errors.md | 2 ++ .../.generated/shared-warnings.md | 2 ++ .../svelte/scripts/process-messages/index.js | 22 ++++++++++--------- 8 files changed, 26 insertions(+), 10 deletions(-) diff --git a/documentation/docs/98-reference/.generated/client-errors.md b/documentation/docs/98-reference/.generated/client-errors.md index 9879b67b33ad..90c9c1f9d166 100644 --- a/documentation/docs/98-reference/.generated/client-errors.md +++ b/documentation/docs/98-reference/.generated/client-errors.md @@ -1,3 +1,5 @@ + + ### bind_invalid_checkbox_value ``` diff --git a/documentation/docs/98-reference/.generated/client-warnings.md b/documentation/docs/98-reference/.generated/client-warnings.md index 743a47b67a98..e9f1a88c3cc6 100644 --- a/documentation/docs/98-reference/.generated/client-warnings.md +++ b/documentation/docs/98-reference/.generated/client-warnings.md @@ -1,3 +1,5 @@ + + ### binding_property_non_reactive ``` diff --git a/documentation/docs/98-reference/.generated/compile-errors.md b/documentation/docs/98-reference/.generated/compile-errors.md index 3981822d84d7..b32bc6b89c02 100644 --- a/documentation/docs/98-reference/.generated/compile-errors.md +++ b/documentation/docs/98-reference/.generated/compile-errors.md @@ -1,3 +1,5 @@ + + ### animation_duplicate ``` diff --git a/documentation/docs/98-reference/.generated/compile-warnings.md b/documentation/docs/98-reference/.generated/compile-warnings.md index e2ac86be2fa4..775e0681c94f 100644 --- a/documentation/docs/98-reference/.generated/compile-warnings.md +++ b/documentation/docs/98-reference/.generated/compile-warnings.md @@ -1,3 +1,5 @@ + + ### a11y_accesskey ``` diff --git a/documentation/docs/98-reference/.generated/server-errors.md b/documentation/docs/98-reference/.generated/server-errors.md index f325b5349a9d..8cf6727da9ac 100644 --- a/documentation/docs/98-reference/.generated/server-errors.md +++ b/documentation/docs/98-reference/.generated/server-errors.md @@ -1,3 +1,5 @@ + + ### lifecycle_function_unavailable ``` diff --git a/documentation/docs/98-reference/.generated/shared-errors.md b/documentation/docs/98-reference/.generated/shared-errors.md index 1a2bcf8d2d47..52ef9d5f8826 100644 --- a/documentation/docs/98-reference/.generated/shared-errors.md +++ b/documentation/docs/98-reference/.generated/shared-errors.md @@ -1,3 +1,5 @@ + + ### invalid_default_snippet ``` diff --git a/documentation/docs/98-reference/.generated/shared-warnings.md b/documentation/docs/98-reference/.generated/shared-warnings.md index 4ff3f89e6d29..e9327e1e9818 100644 --- a/documentation/docs/98-reference/.generated/shared-warnings.md +++ b/documentation/docs/98-reference/.generated/shared-warnings.md @@ -1,3 +1,5 @@ + + ### dynamic_void_element_content ``` diff --git a/packages/svelte/scripts/process-messages/index.js b/packages/svelte/scripts/process-messages/index.js index 3a4e9d8a4df1..3360b2480284 100644 --- a/packages/svelte/scripts/process-messages/index.js +++ b/packages/svelte/scripts/process-messages/index.js @@ -62,18 +62,20 @@ for (const category of fs.readdirSync('messages')) { fs.writeFileSync( `${DIR}/${category}.md`, - Object.entries(messages[category]) - .map(([code, { messages, details }]) => { - const chunks = [`### ${code}`, ...messages.map((message) => '```\n' + message + '\n```')]; + '\n\n' + + Object.entries(messages[category]) + .map(([code, { messages, details }]) => { + const chunks = [`### ${code}`, ...messages.map((message) => '```\n' + message + '\n```')]; - if (details) { - chunks.push(details); - } + if (details) { + chunks.push(details); + } - return chunks.join('\n\n'); - }) - .sort() - .join('\n\n') + '\n' + return chunks.join('\n\n'); + }) + .sort() + .join('\n\n') + + '\n' ); }