Skip to content

Commit 1934d09

Browse files
committed
fix(docs): enable JSON syntax highlighting for code blocks
The code blocks in Configuration.md used `jsonc` language identifier, which is not supported by highlight.js by default. This caused JSON code blocks to appear without syntax highlighting on the rendered site. Fixed by: - Loading JSON language module in highlight.js initialization - Changing `jsonc` to `json` in all code blocks (JSON supports comments) The `json` language properly highlights both standard JSON and JSON with comments (JSONC format), making it the correct choice for our configuration examples.
1 parent 33b6884 commit 1934d09

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

docs/configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The first file found is used. JSONC files support `//` and `/* */` comments.
2020

2121
### Configuration Options
2222

23-
```jsonc
23+
```json
2424
{
2525
// Glob patterns for scenario file discovery
2626
"includes": ["probitas/**/*.probitas.ts"],
@@ -72,7 +72,7 @@ Controls when the test runner stops execution:
7272
- `1`: Fail-fast mode - stop immediately on first failure
7373
- `n`: Stop after n failures
7474

75-
```jsonc
75+
```json
7676
{
7777
// Fail-fast: stop on first failure
7878
"maxFailures": 1
@@ -84,7 +84,7 @@ Controls when the test runner stops execution:
8484
Set default timeout and retry behavior for all steps across all scenarios. These
8585
defaults can be overridden at the scenario level or individual step level.
8686

87-
```jsonc
87+
```json
8888
{
8989
"stepOptions": {
9090
// Default timeout for each step in milliseconds

templates/scripts.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ async function ensureHljs() {
3333
if (window.hljs) return;
3434
await loadScript(\`\${HLJS_CDN}/highlight.min.js\`);
3535
await loadScript(\`\${HLJS_CDN}/languages/typescript.min.js\`);
36+
await loadScript(\`\${HLJS_CDN}/languages/json.min.js\`);
3637
}
3738
3839
function updateHljsTheme(theme) {

0 commit comments

Comments
 (0)