Skip to content

Commit 99dada8

Browse files
authored
Merge pull request #3541 from meilisearch/ci-check-missing-redirects
Add CI workflow to check missing redirects on PRs
2 parents cb52c75 + 3f12467 commit 99dada8

14 files changed

Lines changed: 5681 additions & 2107 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Runs on every PR targeting main and on workflow_dispatch.
2+
# Checks for broken internal links in MDX documentation files.
3+
# No secrets required — runs entirely from local files.
4+
name: Check broken links
5+
6+
on:
7+
workflow_dispatch:
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
check-broken-links:
14+
name: Check broken links
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: "20"
22+
cache: "npm"
23+
24+
- name: Install dependencies
25+
run: npm install
26+
27+
- name: Check broken internal links
28+
run: npm run check-broken-links
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Runs on PRs targeting main and on workflow_dispatch.
2+
# Checks for missing redirects (URLs with traffic but no page or redirect)
3+
# and unused redirects (redirects with zero traffic) using Fathom Analytics data.
4+
name: Check missing redirects
5+
6+
on:
7+
workflow_dispatch:
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
check-missing-redirects:
14+
name: Check missing redirects
15+
runs-on: ubuntu-latest
16+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
17+
steps:
18+
- uses: actions/checkout@v6
19+
20+
- uses: actions/setup-node@v6
21+
with:
22+
node-version: "20"
23+
cache: "npm"
24+
25+
- name: Install dependencies
26+
run: npm install
27+
28+
- name: Check missing redirects
29+
env:
30+
FATHOM_API_KEY: ${{ secrets.FATHOM_API_KEY }}
31+
FATHOM_SITE_ID: ${{ secrets.FATHOM_SITE_ID }}
32+
run: npm run check-missing-redirects

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,4 @@ yarn-error.log
139139

140140
# Script output
141141
missing-redirects.txt
142+
broken-links.txt

capabilities/conversational_search/getting_started/setup.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Enable chat completions from your Meilisearch Cloud project in one of two ways:
1717
- Or open the **Chat** tab in your project and activate the feature directly from there
1818

1919
<Note>
20-
For self-hosted instances, enable the feature through the [experimental features API](/reference/api/experimental-features/update-experimental-features).
20+
For self-hosted instances, enable the feature through the [experimental features API](/reference/api/experimental-features/configure-experimental-features).
2121
</Note>
2222

2323
## Find your chat API key
@@ -36,7 +36,7 @@ If your instance does not have a Default Chat API Key, create one manually:
3636

3737
## Configure your indexes
3838

39-
Configure the [chat settings](/reference/api/chat-settings/update-index-chat-settings) for each index you want to make available to the conversational search agent:
39+
Configure the [chat settings](/reference/api/chats/update-settings-of-a-chat-workspace) for each index you want to make available to the conversational search agent:
4040

4141
<CodeGroup>
4242

capabilities/full_text_search/advanced/debug_search_performance.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ When using `showPerformanceDetails` at the `federation` level, you see these sta
9595
| Stage | Description |
9696
|-------|-------------|
9797
| `federating results > partition queries` | Organizing queries by index and remote host. |
98-
| `federating results > start remote search` | Initiating search requests to remote Meilisearch instances. Only appears when using [network search](/resources/self_hosting/sharding). |
98+
| `federating results > start remote search` | Initiating search requests to remote Meilisearch instances. Only appears when using [network search](/resources/self_hosting/sharding/overview). |
9999
| `federating results > execute local search` | Executing queries against local indexes. |
100100
| `federating results > wait for remote results` | Waiting for remote instances to respond. High values indicate network latency or slow remote instances. |
101101
| `federating results > merge results` | Merging and deduplicating results from all sources into a single ranked list. |

capabilities/indexing/how_to/document_relations.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,13 @@ With foreign keys configured, the same result is automatically hydrated:
139139
## Limitations
140140

141141
- **Experimental**: This feature may change or be removed in future versions.
142-
- **No remote [sharding](/resources/self_hosting/sharding)**: Foreign keys are not supported in environments using remote sharding.
142+
- **No remote [sharding](/resources/self_hosting/sharding/overview)**: Foreign keys are not supported in environments using remote sharding.
143143
- **One direction**: Hydration works from the main index to the referenced index. The referenced index does not automatically link back.
144144

145145
## Next steps
146146

147147
<CardGroup cols={2}>
148-
<Card title="Foreign keys settings API" href="/reference/api/settings/get-foreign-keys">
148+
<Card title="Foreign keys settings API" href="/reference/api/settings/get-foreignkeys">
149149
Full API reference for foreign key settings
150150
</Card>
151151
<Card title="Experimental features API" href="/reference/api/experimental-features/list-experimental-features">

0 commit comments

Comments
 (0)