-
Notifications
You must be signed in to change notification settings - Fork 72
docs(plugin-meilisearch): add guidelines about auto recraw #434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
f5b77d7
feat(plugin-meilisearch): add code to repo
JQiue 9c9e523
Merge branch 'main' into feat/plugin-meilisearch
Mister-Hope 2885d19
feat: rebuild
Mister-Hope d245da0
chore: tweaks
Mister-Hope 6a989ec
chore: tweaks
Mister-Hope 906d524
chore: fix lockfile
Mister-Hope 2fb5800
chore: tweaks
Mister-Hope dec171e
chore: tweaks
Mister-Hope 457cc8d
feat(plugin-meilisearch): add prerender for button
JQiue fd24404
chore: rename export function name
JQiue eba85f6
docs: add meilisearch docs
JQiue 318ed0e
docs: update meilisearch ico and sidebar config
JQiue 709338b
docs: update meilisearch docs
JQiue fb54621
Merge branch 'main' into feat/plugin-meilisearch
Mister-Hope 2b05d4b
chore: update words
Mister-Hope 9e57b57
feat: add built-in translation
Mister-Hope 84c083a
Merge branch 'main' into feat/plugin-meilisearch
Mister-Hope a65a2b0
chore: tweaks
Mister-Hope edfd72c
feat: add missing locales
Mister-Hope 5aa47ef
Merge branch 'main' into feat/plugin-meilisearch
Mister-Hope ef86220
chore: revert
Mister-Hope 3099787
docs: update docs
Mister-Hope 423cfc9
Merge branch 'main' into feat/plugin-meilisearch
Mister-Hope 314ad29
Merge branch 'main' into feat/plugin-meilisearch
Mister-Hope 5f05095
fix: fix types
Mister-Hope 649bb40
docs: correct docs
Mister-Hope 8e52bc8
Merge branch 'main' into feat/plugin-meilisearch
Mister-Hope 27a4ef0
docs: update docs
JQiue 46c2ef9
docs: update docs
JQiue dcd5732
docs: update docs
JQiue 634d024
Merge branch 'main' into feat/plugin-meilisearch
Mister-Hope c90e161
chore: fix broken lockfile
Mister-Hope 5fa2a2d
Merge branch 'main' into feat/plugin-meilisearch
Mister-Hope 598a850
Merge branch 'main' into feat/plugin-meilisearch
Mister-Hope 3ce90a5
Merge branch 'main' into feat/plugin-meilisearch
Mister-Hope c94c893
style: fix linter
Mister-Hope 599bb80
chore: tweaks
Mister-Hope b4a5ca0
fix: fix bundle issue
Mister-Hope c52045b
chore: tweaks
Mister-Hope 43a36d6
fix: watch routeLocale
Mister-Hope 5f1c3d8
ci: fix lockfile
Mister-Hope 98e543d
fix: fix bugs
Mister-Hope d993c7c
fix: fix vite pack issue
Mister-Hope 399409e
chore: tweaks
Mister-Hope 029b937
fix: fix webpack ssg
Mister-Hope 36877cb
docs: update docs
Mister-Hope 8d37fd7
chore: tweaks
Mister-Hope 8738528
Merge branch 'main' into feat/plugin-meilisearch
Mister-Hope 71ed814
Merge branch 'main' into feat/plugin-meilisearch
Mister-Hope 72c8f40
feat: filter results based on page locale
JQiue fa9a319
docs: update docs
JQiue 11dedde
docs: update docs
JQiue 5ed8ec7
fix: fixed an issue where filters could not be passed to options
JQiue bbc481d
Merge branch 'main' into feat/plugin-meilisearch
Mister-Hope f8fd164
docs: update docs
Mister-Hope d7f4c87
docs: update docs
Mister-Hope c5766d8
docs: tweaks
Mister-Hope 7857601
docs: tweaks
Mister-Hope 47ff3cf
docs: update docs
JQiue 00f9646
docs: update docs
JQiue 855d9e0
Merge branch 'main' into feat/plugin-meilisearch
JQiue 4e095d3
Merge branch 'main' into feat/plugin-meilisearch
Mister-Hope File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -153,6 +153,42 @@ docker run -t --rm \ | |||||||||
|
||||||||||
> 参考 <https://www.meilisearch.com/docs/guides/front_end/search_bar_for_docs#scrape-your-content> | ||||||||||
|
||||||||||
### 使用 Github Action 自动抓取 | ||||||||||
|
||||||||||
在 Github 仓库的`Settings` -> `Secrets and variables` -> `Actions` -> `New repository secret`设置`MEILISEARCH_API_KEY`和`MEILISEARCH_HOST_URL`,并将你的爬虫配置文件命名为 `melisearch_scraper.json` 放到项目根目录下。 | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
```yml | ||||||||||
name: Deploy and Scrape | ||||||||||
|
||||||||||
on: | ||||||||||
push: | ||||||||||
branches: | ||||||||||
- main | ||||||||||
|
||||||||||
jobs: | ||||||||||
deploy: | ||||||||||
runs-on: ubuntu-latest | ||||||||||
steps: | ||||||||||
# .... | ||||||||||
scrapy: | ||||||||||
needs: deploy | ||||||||||
runs-on: ubuntu-latest | ||||||||||
name: scrape and push content on Meilisearch instance | ||||||||||
steps: | ||||||||||
- uses: actions/checkout@v4 | ||||||||||
- name: Run scraper | ||||||||||
env: | ||||||||||
HOST_URL: ${{ secrets.MEILISEARCH_HOST_URL }} | ||||||||||
API_KEY: ${{ secrets.MEILISEARCH_API_KEY }} | ||||||||||
CONFIG_FILE_PATH: ${{ github.workspace }}/meilisearch-scraper.json | ||||||||||
JQiue marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||
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:latest pipenv run ./docs_scraper config.json | ||||||||||
``` | ||||||||||
|
||||||||||
## 获取搜索索引和 API 密钥 | ||||||||||
|
||||||||||
要创建只允许搜索操作的访问密钥,请使用以下请求。`indexes` 数组指定该密钥可以访问哪些索引,`expiresAt` 设置密钥的过期时间。 | ||||||||||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change MEILISEARCH_HOST_URL to env instead of secret