feat: add Kbd component and blog post about IDEA schema validation bug

Add a Kbd component with macOS special key support (⌘, ⌥, ⌃, ⇧, etc.),
export it from theme/index.tsx for use in MDX files.

Add blog posts (EN + ZH) documenting the IntelliJ IDEA application.yaml
schema validation bug caused by an overly broad fileMatch pattern in
SchemaStore, along with the quick fix.
This commit is contained in:
2026-05-26 17:54:24 +08:00
parent 59d7a3042a
commit f6fc7eeaae
4 changed files with 67 additions and 2 deletions
@@ -11,6 +11,8 @@ author:
email: real@zihluwang.me
---
import { Kbd } from "@rspress/core/theme"
Recently, while developing a Spring Boot project in IntelliJ IDEA, I noticed that the smart code completion for `application.yaml` and `application.yml` had suddenly vanished. Worse, the editor was flooded with warnings reading:
> Schema validation: Missing required property 'kind' = 'Application'
@@ -27,7 +29,7 @@ After some digging, I found the culprit. IDEA downloads JSON Schemas from remote
To disable this behaviour immediately:
1. Open **Settings** (Ctrl+Alt+S / Cmd+,)
1. Open **Settings** (<Kbd>Ctrl</Kbd>+<Kbd>Alt</Kbd>+<Kbd>S</Kbd> for Windows / <Kbd mac="cmd" /> + <Kbd>,</Kbd> for macOS)
2. Navigate to **Languages & Frameworks → Schemas and DTDs → Remote JSON Schemas**
3. Uncheck **Allow downloading JSON Schemas from remote sources**
4. Click **OK**