Skip to content

Commit 21a5cee

Browse files
committed
web: LabgridConfig: Render labgrid yaml config files as text
labgrid's yaml configuration files can contain Jinja2 for templating. This is, for example, used in `/etc/labgrid/configuration.yaml` that is shipped with `meta-lxatac`. Since the `yaml` syntax highlighter of the editor is not able to handle this, it displays syntax errors. Even if the actual file is totally correct. This behavior already led to users needing support while initially setting up their devices. This change disables the `yaml` syntax highlighter. Signed-off-by: Chris Fiege <[email protected]>
1 parent e94c996 commit 21a5cee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/SettingsLabgrid.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function LabgridConfig() {
4848
label: "User Config",
4949
id: "user",
5050
content: (
51-
<ConfigEditor path="/v1/labgrid/userconfig" language="yaml" />
51+
<ConfigEditor path="/v1/labgrid/userconfig" language="text" />
5252
),
5353
},
5454
{
@@ -62,7 +62,7 @@ export function LabgridConfig() {
6262
label: "System Config",
6363
id: "system",
6464
content: (
65-
<ConfigEditor path="v1/labgrid/configuration" language="yaml" />
65+
<ConfigEditor path="v1/labgrid/configuration" language="text" />
6666
),
6767
},
6868
]}

0 commit comments

Comments
 (0)