Skip to content

Commit

Permalink
Suppress highlighting of errors
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ralfhandl committed Aug 14, 2024
1 parent e3ffb8d commit d22d202
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 2 additions & 5 deletions _includes/example-api-description.md
Original file line number Diff line number Diff line change
@@ -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" }} %}
```
8 changes: 6 additions & 2 deletions _sass/custom/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ object {
width: 100%;
}


.nav-list .nav-list-item .nav-list-expander {
color: #1d781d !important;
}
}

.highlight .err {
color: inherit;
background-color: inherit;
}

0 comments on commit d22d202

Please sign in to comment.