Skip to content

Commit 2f454d8

Browse files
committed
DEF-35997 fix: wrap CLI code blocks in notranslate divs for consistent styling
Made-with: Cursor
1 parent 106d70a commit 2f454d8

1 file changed

Lines changed: 32 additions & 8 deletions

File tree

docs/features/panel_notifications/README.md

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,52 +51,73 @@ The feature is controlled by Imunify configuration keys:
5151

5252
### Enable/disable in YAML
5353

54-
```yaml
54+
<div class="notranslate">
55+
56+
```
5557
ADMIN_CONTACTS:
5658
enable_icontact_notifications: True
5759
```
60+
</div>
5861

5962
### Enable/disable via CLI
6063

6164
**Imunify360:**
6265

63-
```bash
66+
<div class="notranslate">
67+
68+
```
6469
imunify360-agent config update '{"ADMIN_CONTACTS": {"enable_icontact_notifications": true}}'
6570
```
71+
</div>
6672

6773
Disable:
6874

69-
```bash
75+
<div class="notranslate">
76+
77+
```
7078
imunify360-agent config update '{"ADMIN_CONTACTS": {"enable_icontact_notifications": false}}'
7179
```
80+
</div>
7281

7382
**ImunifyAV/AV+:**
7483

75-
```bash
84+
<div class="notranslate">
85+
86+
```
7687
imunify-antivirus config update '{"ADMIN_CONTACTS": {"enable_icontact_notifications": true}}'
7788
```
89+
</div>
7890

7991
### (Optional) Disable user-targeted delivery
8092

8193
If you want these notifications to go **only to the server administrator** and never to end users, disable `CONTROL_PANEL.generic_user_notifications`.
8294

8395
**Imunify360 (global):**
8496

85-
```bash
97+
<div class="notranslate">
98+
99+
```
86100
imunify360-agent config update '{"CONTROL_PANEL": {"generic_user_notifications": false}}'
87101
```
102+
</div>
88103

89104
**Imunify360 (for a specific user):**
90105

91-
```bash
106+
<div class="notranslate">
107+
108+
```
92109
imunify360-agent config update '{"CONTROL_PANEL": {"generic_user_notifications": false}}' --user <username>
93110
```
111+
</div>
94112

95113
**ImunifyAV/AV+:**
96114

97-
```bash
115+
<div class="notranslate">
116+
117+
```
98118
imunify-antivirus config update '{"CONTROL_PANEL": {"generic_user_notifications": false}}'
99119
```
120+
</div>
100121

101122
## Plesk: managing delivery with Plesk Notifications
102123

@@ -109,9 +130,12 @@ When Imunify runs under Plesk, it relies on the **Imunify Plesk extension** to d
109130

110131
On a server with the Imunify extension installed, run:
111132

112-
```bash
133+
<div class="notranslate">
134+
135+
```
113136
echo '{"message_type":"Generic","params":{"subject":"Test Generic","body_html":"<p>Hello from Imunify</p>"},"user":"client_login"}' | sudo /opt/imunify360/venv/share/imunify360/scripts/send-notifications
114137
```
138+
</div>
115139

116140
**Payload fields:**
117141
- `message_type`: must be `Generic`

0 commit comments

Comments
 (0)