Skip to content

Commit

Permalink
chore: mark markdown output from process-messages as generated (#13913)
Browse files Browse the repository at this point in the history
* chore: mark markdown output from process-messages as generated

* regenerate
  • Loading branch information
Conduitry authored Nov 1, 2024
1 parent cf25930 commit 2ab7004
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 10 deletions.
2 changes: 2 additions & 0 deletions documentation/docs/98-reference/.generated/client-errors.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- This file is generated by scripts/process-messages/index.js. Do not edit! -->

### bind_invalid_checkbox_value

```
Expand Down
2 changes: 2 additions & 0 deletions documentation/docs/98-reference/.generated/client-warnings.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- This file is generated by scripts/process-messages/index.js. Do not edit! -->

### binding_property_non_reactive

```
Expand Down
2 changes: 2 additions & 0 deletions documentation/docs/98-reference/.generated/compile-errors.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- This file is generated by scripts/process-messages/index.js. Do not edit! -->

### animation_duplicate

```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- This file is generated by scripts/process-messages/index.js. Do not edit! -->

### a11y_accesskey

```
Expand Down
2 changes: 2 additions & 0 deletions documentation/docs/98-reference/.generated/server-errors.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- This file is generated by scripts/process-messages/index.js. Do not edit! -->

### lifecycle_function_unavailable

```
Expand Down
2 changes: 2 additions & 0 deletions documentation/docs/98-reference/.generated/shared-errors.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- This file is generated by scripts/process-messages/index.js. Do not edit! -->

### invalid_default_snippet

```
Expand Down
2 changes: 2 additions & 0 deletions documentation/docs/98-reference/.generated/shared-warnings.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- This file is generated by scripts/process-messages/index.js. Do not edit! -->

### dynamic_void_element_content

```
Expand Down
22 changes: 12 additions & 10 deletions packages/svelte/scripts/process-messages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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```')];
'<!-- This file is generated by scripts/process-messages/index.js. Do not edit! -->\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'
);
}

Expand Down

0 comments on commit 2ab7004

Please sign in to comment.