Skip to content

Commit 8c06e23

Browse files
Try to fix Fathom analytics (#3388)
1 parent cfac6d1 commit 8c06e23

7 files changed

+41
-0
lines changed

docs.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
"dark": "#1A003B"
2020
}
2121
},
22+
"seo": {
23+
"metatags": {
24+
"canonical": "https://meilisearch.com/docs"
25+
}
26+
},
2227
"appearance": {
2328
"default": "dark"
2429
},
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<CodeGroup>
2+
3+
```bash cURL
4+
curl \
5+
-X POST 'MEILISEARCH_URL/indexes/INDEX_UID/compact'
6+
```
7+
</CodeGroup>

snippets/samples/code_samples_webhooks_delete_1.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@ client.deleteWebhook(WEBHOOK_UUID)
1212
```go Go
1313
client.DeleteWebhook("WEBHOOK_UUID");
1414
```
15+
16+
```rust Rust
17+
client.delete_webhook("WEBHOOK_UUID").await.unwrap();
18+
```
1519
</CodeGroup>

snippets/samples/code_samples_webhooks_get_1.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@ client.getWebhooks()
1212
```go Go
1313
client.ListWebhooks();
1414
```
15+
16+
```rust Rust
17+
let webhooks = client.get_webhooks().await.unwrap();
18+
```
1519
</CodeGroup>

snippets/samples/code_samples_webhooks_get_single_1.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@ client.getWebhook(WEBHOOK_UUID)
1212
```go Go
1313
client.GetWebhook("WEBHOOK_UUID");
1414
```
15+
16+
```rust Rust
17+
let webhook = client.get_webhook("WEBHOOK_UUID").await.unwrap();
18+
```
1519
</CodeGroup>

snippets/samples/code_samples_webhooks_patch_1.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,13 @@ client.UpdateWebhook("WEBHOOK_UUID", &meilisearch.UpdateWebhookRequest{
2626
},
2727
});
2828
```
29+
30+
```rust Rust
31+
let mut update = meilisearch_sdk::webhooks::WebhookUpdate::new();
32+
update.remove_header("referer");
33+
let webhook = client
34+
.update_webhook("WEBHOOK_UUID", &update)
35+
.await
36+
.unwrap();
37+
```
2938
</CodeGroup>

snippets/samples/code_samples_webhooks_post_1.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,12 @@ client.AddWebhook(&meilisearch.AddWebhookRequest{
3232
},
3333
});
3434
```
35+
36+
```rust Rust
37+
let mut payload = meilisearch_sdk::webhooks::WebhookCreate::new("WEBHOOK_TARGET_URL");
38+
payload
39+
.insert_header("authorization", "SECURITY_KEY")
40+
.insert_header("referer", "https://example.com");
41+
let webhook = client.create_webhook(&payload).await.unwrap();
42+
```
3543
</CodeGroup>

0 commit comments

Comments
 (0)