Skip to content

Commit 32ff2b1

Browse files
authored
docs: fix links flagged by the weekly link check - #4291 (#4292)
Convert the raw-HTML prev/next nav links in the zarr-indexing guide to markdown inside `<nav markdown>` blocks, so mkdocs validates and rewrites them at build time and lychee resolves them as files; the rendered HTML is unchanged. Update the MDN CORS link in the zarr-http-server guide to its post-redirect URL, and exclude the bot-blocked Stack Overflow tag page from lychee. Assisted-by: ClaudeCode:claude-fable-5
1 parent 7729d92 commit 32ff2b1

7 files changed

Lines changed: 16 additions & 11 deletions

File tree

lychee.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,6 @@ exclude = [
2222
'^https?://(localhost|127\.0\.0\.1)(:\d+)?',
2323
# SPEC 0 page times out but is valid.
2424
'^https://scientific-python\.org/specs/spec-0000',
25+
# Stack Overflow answers link-checker requests with 403; the tag page is valid.
26+
'^https://stackoverflow\.com/questions/tagged/',
2527
]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Updated the MDN CORS link in the user guide to its current URL.

packages/zarr-http-server/docs/guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ bind has no URL to report.
215215

216216
Both app builders accept a [`CorsOptions`][zarr_http_server.CorsOptions]
217217
parameter to enable
218-
[CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) middleware for
218+
[CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS) middleware for
219219
browser-based clients:
220220

221221
```python
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Rewrote the guide's prev/next navigation links as markdown so mkdocs
2+
validates them at build time; the rendered pages are unchanged.

packages/zarr-indexing/docs/guide/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@ correspondence between every request position and its chunk-local source cell.
437437

438438
---
439439

440-
<nav aria-label="Guide navigation">
441-
<strong>Previous:</strong> <a href="../">zarr-indexing</a>
442-
·
443-
<strong>Next:</strong> <a href="patterns/">Indexing patterns</a>
440+
<nav aria-label="Guide navigation" markdown>
441+
**Previous:** [zarr-indexing](../index.md)
442+
·
443+
**Next:** [Indexing patterns](patterns.md)
444444
</nav>

packages/zarr-indexing/docs/guide/integrations.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ that implementation or reproduce its full worker/GPU lifecycle.
207207

208208
---
209209

210-
<nav aria-label="Reference page navigation">
211-
<strong>Previous:</strong> <a href="../patterns/">Indexing pattern reference</a>
212-
·
213-
<strong>API:</strong> <a href="../../api/">API reference</a>
210+
<nav aria-label="Reference page navigation" markdown>
211+
**Previous:** [Indexing pattern reference](patterns.md)
212+
·
213+
**API:** [API reference](../api/index.md)
214214
</nav>

packages/zarr-indexing/docs/guide/patterns.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,6 @@ that distinction with non-zero and negative-origin domains.
322322

323323
---
324324

325-
<nav aria-label="Reference page navigation">
326-
<strong>Next:</strong> <a href="../integrations/">Integration boundaries</a>
325+
<nav aria-label="Reference page navigation" markdown>
326+
**Next:** [Integration boundaries](integrations.md)
327327
</nav>

0 commit comments

Comments
 (0)