Skip to content

Commit

Permalink
Fixes nav issue for H5 in TOC
Browse files Browse the repository at this point in the history
  • Loading branch information
ctauchen committed Oct 11, 2024
1 parent f6fefaa commit f26b581
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion calico/reference/resources/felixnew.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ spec:
### Spec
#### Datastore connection

Check failure on line 31 in calico/reference/resources/felixnew.mdx

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Vale.Spelling] Did you really mean 'Datastore'? Raw Output: {"message": "[Vale.Spelling] Did you really mean 'Datastore'?", "location": {"path": "calico/reference/resources/felixnew.mdx", "range": {"start": {"line": 31, "column": 6}}}, "severity": "ERROR"}
<FelixConfig name="Process: Feature detection/overrides" />
Expand Down
6 changes: 3 additions & 3 deletions src/___new___/components/FelixConfig/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const FelixConfig = ({ name }) => {
Array.isArray(group.Fields) && group.Fields.length > 0 ? (
group.Fields.map((field, index) => (
<div key={index}>
<h5><code>{field.NameYAML}</code></h5>
<h5 id={`${field.NameYAML}`}><code>{field.NameYAML}</code></h5>
<p dangerouslySetInnerHTML={{ __html: field.DescriptionHTML }} />
<table>
<thead>
Expand All @@ -41,8 +41,8 @@ const FelixConfig = ({ name }) => {
<tr>
<td>Default</td>
<td>
{field.StringDefault === "" ? (
"none"
{field.StringDefault === '' ? (
'none'
) : field.GoType === '*v1.Duration' ? (
<>
<code>{field.StringDefault}</code> (<code>{field.ParsedDefault}</code>)
Expand Down

0 comments on commit f26b581

Please sign in to comment.