Skip to content

Commit ff96539

Browse files
committed
[Chore] Add default language title if none set
1 parent 50fa151 commit ff96539

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

src/content/docs/1.1.1.1/troubleshooting.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ head:
88
- tag: title
99
content: Troubleshooting DNS Resolver
1010
slug: 1.1.1.1/troubleshooting
11-
1211
---
1312

14-
import { Render } from "~/components"
13+
import { Render } from "~/components";
1514

1615
This guide will help you diagnose and resolve common issues with Cloudflare's DNS Resolver. Before proceeding with manual troubleshooting steps, you can [verify your connection](/1.1.1.1/check/) to automatically gather relevant information.
1716

src/plugins/expressive-code/default-titles.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,30 @@ export default () => {
1010
context.codeBlock.props.title ??= "PowerShell";
1111
break;
1212
}
13+
case "javascript": {
14+
context.codeBlock.props.title ??= "index.js";
15+
break;
16+
}
17+
case "js": {
18+
context.codeBlock.props.title ??= "index.js";
19+
break;
20+
}
21+
case "py": {
22+
context.codeBlock.props.title ??= "index.py";
23+
break;
24+
}
25+
case "python": {
26+
context.codeBlock.props.title ??= "index.py";
27+
break;
28+
}
29+
case "typescript": {
30+
context.codeBlock.props.title ??= "index.ts";
31+
break;
32+
}
33+
case "ts": {
34+
context.codeBlock.props.title ??= "index.ts";
35+
break;
36+
}
1337
default: {
1438
return;
1539
}

0 commit comments

Comments
 (0)