Skip to content

Commit 11d9d81

Browse files
committed
bug #157 fix: unknown caddy language (mikaelkael)
This PR was merged into the main branch. Discussion ---------- fix: unknown caddy language symfony/symfony-docs@83fa5c6 introduced a new code-block directive 'Caddy' We have now builds errors like: `[ERROR] There were some errors while building the docs: Build errors from "2023-04-25 08:14:03" Error while processing "code-block" directive: "Unsupported code block language "caddy". Added it in SymfonyDocsBuilder\Renderers\CodeNodeRenderer" in file "security"` I added 'caddy' as plaintext as there is no definition of caddy's syntax in https://github.com/scrivo/highlight.php Commits ------- 73c2ab1 fix: unknown caddy's language
2 parents f34eaab + 73c2ab1 commit 11d9d81

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Renderers/CodeNodeRenderer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class CodeNodeRenderer implements NodeRenderer
2121
private static $isHighlighterConfigured = false;
2222

2323
private const LANGUAGES_MAPPING = [
24+
'caddy' => 'plaintext',
2425
'env' => 'bash',
2526
'html+jinja' => 'twig',
2627
'html+twig' => 'twig',

0 commit comments

Comments
 (0)