Skip to content

Commit

Permalink
Merge new website content into main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
guimachiavelli authored Apr 26, 2023
2 parents 76a2d29 + dcd087d commit a0ad491
Show file tree
Hide file tree
Showing 237 changed files with 2,935 additions and 14,840 deletions.
43 changes: 25 additions & 18 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# This code-samples file is used by the Meilisearch documentation
# Every example written here will be automatically fetched by
# the documentation on build
# You can read more at https://github.com/meilisearch/documentation/tree/main/.vuepress/code-samples
---
get_one_index_1: |-
curl \
Expand Down Expand Up @@ -892,85 +891,85 @@ getting_started_pagination: |-
--data-binary '{
"maxTotalHits": 500
}'
search_parameter_guide_matching_strategy_1: |
search_parameter_guide_matching_strategy_1: |-
curl \
-X POST 'http://localhost:7700/indexes/movies/search' \
-H 'Content-Type: application/json' \
--data-binary '{
"q": "big fat liar",
"matchingStrategy": "last"
}'
search_parameter_guide_matching_strategy_2: |
search_parameter_guide_matching_strategy_2: |-
curl \
-X POST 'http://localhost:7700/indexes/movies/search' \
-H 'Content-Type: application/json' \
--data-binary '{
"q": "big fat liar",
"matchingStrategy": "all"
}'
date_guide_index_1: |
date_guide_index_1: |-
curl \
-x POST 'http://localhost:7700/indexes/games/documents' \
-h 'content-type: application/json' \
--data-binary @games.json
date_guide_filterable_attributes_1: |
date_guide_filterable_attributes_1: |-
curl \
-X PUT 'http://localhost:7700/indexes/games/settings/filterable-attributes' \
-H 'Content-Type: application/json' \
--data-binary '[
"release_timestamp"
]'
date_guide_filter_1: |
date_guide_filter_1: |-
curl \
-X POST 'http://localhost:7700/indexes/games/search' \
-H 'Content-Type: application/json' \
--data-binary '{
"q": "",
"filter": "release_timestamp >= 1514761200 AND release_timestamp < 1672527600"
}'
date_guide_sortable_attributes_1: |
date_guide_sortable_attributes_1: |-
curl \
-X PUT 'http://localhost:7700/indexes/games/settings/sortable-attributes' \
-H 'Content-Type: application/json' \
--data-binary '[
"release_timestamp"
]'
date_guide_sort_1: |
date_guide_sort_1: |-
curl \
-X POST 'http://localhost:7700/indexes/games/search' \
-H 'Content-Type: application/json' \
--data-binary '{
"q": "",
"sort": ["release_timestamp:desc"]
}'
async_guide_filter_by_date_1: |
async_guide_filter_by_date_1: |-
curl \
-X GET 'http://localhost:7700/tasks?afterEnqueuedAt=2020-10-11T11:49:53.000Z'
async_guide_multiple_filters_1: |
async_guide_multiple_filters_1: |-
curl \
-X GET 'http://localhost:7700/tasks?indexUids=movies&types=documentAdditionOrUpdate,documentDeletion&statuses=processing'
async_guide_filter_by_ids_1: |
async_guide_filter_by_ids_1: |-
curl \
-X GET 'http://localhost:7700/tasks?uids=5,10,13'
async_guide_filter_by_statuses_1: |
async_guide_filter_by_statuses_1: |-
curl \
-X GET 'http://localhost:7700/tasks?statuses=failed,canceled'
async_guide_filter_by_types_1: |
async_guide_filter_by_types_1: |-
curl \
-X GET 'http://localhost:7700/tasks?types=dumpCreation,indexSwap'
async_guide_filter_by_index_uids_1: |
async_guide_filter_by_index_uids_1: |-
curl \
-X GET 'http://localhost:7700/tasks?indexUids=movies'
async_guide_canceled_by_1: |
async_guide_canceled_by_1: |-
curl \
-X GET 'http://localhost:7700/tasks?canceledBy=9,15'
delete_tasks_1: |
delete_tasks_1: |-
curl \
-X DELETE 'http://localhost:7700/tasks?uids=1,2'
cancel_tasks_1: |
cancel_tasks_1: |-
curl \
-X POST 'http://localhost:7700/tasks/cancel?uids=1,2'
swap_indexes_1: |
swap_indexes_1: |-
curl \
-X POST 'http://localhost:7700/swap-indexes' \
-H 'Content-Type: application/json' \
Expand Down Expand Up @@ -1058,3 +1057,11 @@ faceted_search_2: |-
}
]
}'
filtering_update_settings_1: |-
curl \
-X PUT 'http://localhost:7700/indexes/movie_ratings/settings/filterable-attributes' \
-H 'Content-Type: application/json' \
--data-binary '[
"genres",
"director"
]'
14 changes: 0 additions & 14 deletions .editorconfig

This file was deleted.

2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

50 changes: 0 additions & 50 deletions .eslintrc.js

This file was deleted.

6 changes: 0 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,4 @@ updates:
time: "04:00"
open-pull-requests-limit: 10
versioning-strategy: increase
ignore:
- dependency-name: "eslint*"
- dependency-name: "babel-eslint"
- dependency-name: "js-yaml"
- dependency-name: "*prettier*"
- dependency-name: "vuex"
rebase-strategy: disabled
63 changes: 0 additions & 63 deletions .github/workflows/checks.yml

This file was deleted.

42 changes: 0 additions & 42 deletions .github/workflows/deploy.yml

This file was deleted.

58 changes: 58 additions & 0 deletions .github/workflows/scraper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Deploy to main & run scraper
on:
push:
branches:
- main

jobs:
trigger-deploy:
runs-on: ubuntu-22.04
steps:
- name: Ping the deployment hook
run: |
response="$(curl -X POST ${{ secrets.DEPLOY_HOOK }})"
timestamp="$(jq -r ".job.createdAt" <<< "$response")"
echo "timestamp=$timestamp" >> $GITHUB_OUTPUT
await-deploy:
needs: trigger-deploy
runs-on: ubuntu-22.04
steps:
- env:
TIMESTAMP: ${{ needs.trigger-deploy.outputs.timestamp }}
TEAM_ID: team_okdUhHpKkohHXyqJWQOuloqC
APP_NAME: website
name: Wait for deployment
run: |
for i in {1..25}; do
sleep 30
response=$(curl -s -X GET "https://api.vercel.com/v6/deployments?app=$APP_NAME&teamId=$TEAM_ID&since=$TIMESTAMP" -H "Authorization: Bearer ${{ secrets.VERCEL_TOKEN }}")
status=$(echo "$response" | jq -r '.deployments[0] | .state // ""')
if [[ $status == "READY" ]]; then
ready_deployment_url=$(echo "$response" | jq -r '.deployments[0] | .url // ""')
echo "Deployment is ready at $ready_deployment_url"
break
elif [[ $status == "ERROR" || $status == "CANCELED" ]]; then
echo "Deployment failed with status $status"
exit 1 # exit with a failure status code
fi
echo "Deployment is not ready yet, retrying..."
done
scrape-docs:
needs: await-deploy
runs-on: ubuntu-20.04
name: scrape and push content on Meilisearch instance
steps:
- uses: actions/checkout@v3
- name: Run docs-scraper
env:
HOST_URL: ${{ secrets.MEILISEARCH_HOST_URL }}
API_KEY: ${{ secrets.MEILISEARCH_API_KEY }}
CONFIG_FILE_PATH: ${{ github.workspace }}/docs-scraper.config.json
run: |
docker run -t --rm \
-e MEILISEARCH_HOST_URL=$HOST_URL \
-e MEILISEARCH_API_KEY=$API_KEY \
-v $CONFIG_FILE_PATH:/docs-scraper/config.json \
getmeili/docs-scraper:v0.12.8 pipenv run ./docs_scraper config.json
9 changes: 0 additions & 9 deletions .github/workflows/update-copyright.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .markdownlint.jsonc

This file was deleted.

3 changes: 0 additions & 3 deletions .markdownlintignore

This file was deleted.

1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

Loading

0 comments on commit a0ad491

Please sign in to comment.