From d22d202fbaefb9146609be0f1c2595987d30c019 Mon Sep 17 00:00:00 2001 From: Ralf Handl Date: Wed, 14 Aug 2024 17:30:37 +0200 Subject: [PATCH] Suppress highlighting of errors because the highlighted ones false positives (bug in kramdown/rouge? don't want to invest time), and we test the YAML files against the JSON Schema for OpenAPI, so they are more than just syntactically correct --- _includes/example-api-description.md | 7 ++----- _sass/custom/custom.scss | 8 ++++++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/_includes/example-api-description.md b/_includes/example-api-description.md index 127144e..23bfb77 100644 --- a/_includes/example-api-description.md +++ b/_includes/example-api-description.md @@ -1,18 +1,15 @@ # {{ include.name }} -{% assign json_file = include.name | append: ".json" %} -{% assign yaml_file = include.name | append: ".yaml" %} - {{ include.description }} ## JSON ```json -{% include_relative {{ json_file }} %} +{% include_relative {{ include.name | append: ".json" }} %} ``` ## YAML ```yaml -{% include_relative {{ yaml_file }} %} +{% include_relative {{ include.name | append: ".yaml" }} %} ``` diff --git a/_sass/custom/custom.scss b/_sass/custom/custom.scss index eb8d500..82921f9 100644 --- a/_sass/custom/custom.scss +++ b/_sass/custom/custom.scss @@ -2,7 +2,11 @@ object { width: 100%; } - .nav-list .nav-list-item .nav-list-expander { color: #1d781d !important; -} \ No newline at end of file +} + +.highlight .err { + color: inherit; + background-color: inherit; +}