Skip to content

Commit 71a913d

Browse files
gmondelloclaude
andauthored
Fix restricted shortcode rendering on unassociated machines page (#25120)
## Description The restricted shortcode on the [unassociated machines page](https://docs.docker.com/unassociated-machines/) renders with a visible `</span>` tag due to using `{{% %}}` (markdown) delimiters instead of `{{< >}}` (HTML) delimiters. The `{{% %}}` delimiter causes Hugo to process the shortcode's HTML output through the markdown renderer, which escapes the HTML tags from the icon partial. ## Fix Switch from `{{% restricted %}}` to `{{< restricted >}}` delimiters. This matches the pattern used by the similar `experimental` shortcode in other content files (e.g., `layouts/cli.html`). ## Testing Before (Prod) | After (Preview) --- | --- <img width="1082" height="649" alt="image" src="https://github.com/user-attachments/assets/6713bf13-ebb0-46c2-8772-247b62afbc6a" /> | <img width="1075" height="500" alt="image" src="https://github.com/user-attachments/assets/250933a7-7701-4d3e-aae9-6b3732321edb" /> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0ed6c96 commit 71a913d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • content/manuals/unassociated-machines

content/manuals/unassociated-machines/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ params:
1010
group: Enterprise
1111
---
1212

13-
{{% restricted title="About unassociated machines" %}}
13+
{{< restricted title="About unassociated machines" >}}
1414
Unassociated machines is a private feature that may not be available to all
1515
accounts.
16-
{{% /restricted %}}
16+
{{< /restricted >}}
1717

1818
Docker administrators can identify, view, and manage Docker Desktop machines
1919
that are likely associated with their organization but aren't currently linked

0 commit comments

Comments
 (0)