chore: mark markdown output from process-messages as generated (#13913)

* chore: mark markdown output from process-messages as generated

* regenerate
pull/14095/head
Conduitry 2 months ago committed by GitHub
parent cf25930512
commit 2ab70041fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,3 +1,5 @@
<!-- This file is generated by scripts/process-messages/index.js. Do not edit! -->
### bind_invalid_checkbox_value ### bind_invalid_checkbox_value
``` ```

@ -1,3 +1,5 @@
<!-- This file is generated by scripts/process-messages/index.js. Do not edit! -->
### binding_property_non_reactive ### binding_property_non_reactive
``` ```

@ -1,3 +1,5 @@
<!-- This file is generated by scripts/process-messages/index.js. Do not edit! -->
### animation_duplicate ### animation_duplicate
``` ```

@ -1,3 +1,5 @@
<!-- This file is generated by scripts/process-messages/index.js. Do not edit! -->
### a11y_accesskey ### a11y_accesskey
``` ```

@ -1,3 +1,5 @@
<!-- This file is generated by scripts/process-messages/index.js. Do not edit! -->
### lifecycle_function_unavailable ### lifecycle_function_unavailable
``` ```

@ -1,3 +1,5 @@
<!-- This file is generated by scripts/process-messages/index.js. Do not edit! -->
### invalid_default_snippet ### invalid_default_snippet
``` ```

@ -1,3 +1,5 @@
<!-- This file is generated by scripts/process-messages/index.js. Do not edit! -->
### dynamic_void_element_content ### dynamic_void_element_content
``` ```

@ -62,18 +62,20 @@ for (const category of fs.readdirSync('messages')) {
fs.writeFileSync( fs.writeFileSync(
`${DIR}/${category}.md`, `${DIR}/${category}.md`,
Object.entries(messages[category]) '<!-- This file is generated by scripts/process-messages/index.js. Do not edit! -->\n\n' +
.map(([code, { messages, details }]) => { Object.entries(messages[category])
const chunks = [`### ${code}`, ...messages.map((message) => '```\n' + message + '\n```')]; .map(([code, { messages, details }]) => {
const chunks = [`### ${code}`, ...messages.map((message) => '```\n' + message + '\n```')];
if (details) { if (details) {
chunks.push(details); chunks.push(details);
} }
return chunks.join('\n\n'); return chunks.join('\n\n');
}) })
.sort() .sort()
.join('\n\n') + '\n' .join('\n\n') +
'\n'
); );
} }

Loading…
Cancel
Save