Skip to content

Commit 520036c

Browse files
meili-bors[bot]curquizaguimachiavelli
authored
Merge #737
737: Remove `_md` code samples for Mintlify migration r=curquiza a=curquiza Co-authored-by: Clémentine <[email protected]> Co-authored-by: gui machiavelli <[email protected]>
2 parents 2635b29 + bb77738 commit 520036c

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

.code-samples.meilisearch.yaml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -433,16 +433,17 @@ landing_getting_started_1: |-
433433
['id' => 5, 'title' => 'Moana'],
434434
['id' => 6, 'title' => 'Philadelphia'],
435435
]);
436-
getting_started_add_documents_md: |-
437-
Using `meilisearch-php` with the Guzzle HTTP client:
436+
getting_started_add_documents: |-
437+
/**
438+
* Using `meilisearch-php` with the Guzzle HTTP client, in the command line:
439+
* composer require meilisearch/meilisearch-php \
440+
* guzzlehttp/guzzle \
441+
* http-interop/http-factory-guzzle:^1.0
442+
*/
438443
439-
```bash
440-
composer require meilisearch/meilisearch-php \
441-
guzzlehttp/guzzle \
442-
http-interop/http-factory-guzzle:^1.0
443-
```
444-
445-
```php
444+
/**
445+
* In your PHP file:
446+
*/
446447
<?php
447448
448449
require_once __DIR__ . '/vendor/autoload.php';
@@ -455,17 +456,11 @@ getting_started_add_documents_md: |-
455456
$movies = json_decode($movies_json);
456457
457458
$client->index('movies')->addDocuments($movies);
458-
```
459459
460-
[About this SDK](https://github.com/meilisearch/meilisearch-php/)
461460
getting_started_check_task_status: |-
462461
$client->getTask(0);
463-
getting_started_search_md: |-
464-
```php
462+
getting_started_search: |-
465463
$client->index('movies')->search('botman');
466-
```
467-
468-
[About this SDK](https://github.com/meilisearch/meilisearch-php/)
469464
getting_started_add_meteorites: |-
470465
$client = new Client('http://localhost:7700');
471466

0 commit comments

Comments
 (0)