Skip to content

Commit

Permalink
web: LabgridConfig: Render labgrid yaml config files as text
Browse files Browse the repository at this point in the history
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 <cfi@pengutronix.de>
  • Loading branch information
SmithChart committed Mar 1, 2024
1 parent e94c996 commit 21a5cee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/SettingsLabgrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function LabgridConfig() {
label: "User Config",
id: "user",
content: (
<ConfigEditor path="/v1/labgrid/userconfig" language="yaml" />
<ConfigEditor path="/v1/labgrid/userconfig" language="text" />
),
},
{
Expand All @@ -62,7 +62,7 @@ export function LabgridConfig() {
label: "System Config",
id: "system",
content: (
<ConfigEditor path="v1/labgrid/configuration" language="yaml" />
<ConfigEditor path="v1/labgrid/configuration" language="text" />
),
},
]}
Expand Down

0 comments on commit 21a5cee

Please sign in to comment.