gemini-cli - 💡(How to fix) Fix docs: Fix 4 broken links in docs/CONTRIBUTING.md [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
google-gemini/gemini-cli#25487Fetched 2026-04-16 07:05:49
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
labeled ×2closed ×1cross-referenced ×1

The CI link checker (lychee) reports 4 broken file references in docs/CONTRIBUTING.md. All four errors stem from paths resolving to a non-existent docs/docs/ directory.

Error Message

Error: R] file:///home/runner/work/gemini-cli/gemini-cli/docs/docs/assets/connected_devtools.png | Cannot find file Error: R] file:///home/runner/work/gemini-cli/gemini-cli/docs/docs/faq.md | Cannot find file Error: R] file:///home/runner/work/gemini-cli/gemini-cli/docs/docs/integration-tests.md | Cannot find file Error: R] file:///home/runner/work/gemini-cli/gemini-cli/docs/docs/sidebar.json | Cannot find file

Root Cause

The primary bug is #1 — the malformed image markdown with double brackets. For #2–#4, the link checker appears to be resolving paths relative to the file's location (docs/) and then prepending another docs/ prefix, creating the non-existent docs/docs/ base path. This may be a configuration issue in the lychee link checker setup (base URL or --base flag), or the external URLs are being incorrectly transformed into local file paths before checking.

Code Example

![[](/docs/assets/connected_devtools.png)]

---

![connected devtools](./assets/connected_devtools.png)

---

[FAQ](https://gemini-cli.com/docs/resources/faq)

---

[Integration Tests documentation](https://gemini-cli.com/docs/integration-tests)

---

[sidebar.json](https://github.com/google-gemini/gemini-cli/blob/main/docs/sidebar.json)

---

| Status         | Count |
|----------------|-------|
| 🔍 Total       | 123   |
|Successful  | 118   |
|Timeouts    | 0     |
| 🔀 Redirected  | 0     |
| 👻 Excluded    | 1     |
|Unknown     | 0     |
| 🚫 Errors      | 4     |
|Unsupported | 0     |

---

Error: R] <file:///home/runner/work/gemini-cli/gemini-cli/docs/docs/assets/connected_devtools.png> | Cannot find file
Error: R] <file:///home/runner/work/gemini-cli/gemini-cli/docs/docs/faq.md> | Cannot find file
Error: R] <file:///home/runner/work/gemini-cli/gemini-cli/docs/docs/integration-tests.md> | Cannot find file
Error: R] <file:///home/runner/work/gemini-cli/gemini-cli/docs/docs/sidebar.json> | Cannot find file
RAW_BUFFERClick to expand / collapse

Summary

The CI link checker (lychee) reports 4 broken file references in docs/CONTRIBUTING.md. All four errors stem from paths resolving to a non-existent docs/docs/ directory.

Broken links

1. docs/assets/connected_devtools.png — Malformed image syntax

Line: Under the "React DevTools" section Current syntax:

![[](/docs/assets/connected_devtools.png)]

The extra outer brackets make this invalid Markdown. The file docs/assets/connected_devtools.png exists but the link doesn't resolve. Should be:

![connected devtools](./assets/connected_devtools.png)

2. docs/faq.md — File does not exist at referenced path

The "Need help?" section links to:

[FAQ](https://gemini-cli.com/docs/resources/faq)

This external URL is correct for the hosted site, but the link checker appears to be resolving a local file:// reference to docs/docs/faq.md, which does not exist. There is no faq.md anywhere in the docs/ directory. If a local-relative link is intended, it should point to the correct path or be excluded from the checker.

3. docs/integration-tests.md — Path resolved one level too deep

The "Integration tests" section links to:

[Integration Tests documentation](https://gemini-cli.com/docs/integration-tests)

The file docs/integration-tests.md exists at the top level of docs/. The checker resolves it to docs/docs/integration-tests.md which doesn't exist.

4. docs/sidebar.json — Path resolved one level too deep

The "Documentation structure" section links to:

[sidebar.json](https://github.com/google-gemini/gemini-cli/blob/main/docs/sidebar.json)

The file docs/sidebar.json exists. The checker resolves it to docs/docs/sidebar.json.

Root cause

The primary bug is #1 — the malformed image markdown with double brackets. For #2–#4, the link checker appears to be resolving paths relative to the file's location (docs/) and then prepending another docs/ prefix, creating the non-existent docs/docs/ base path. This may be a configuration issue in the lychee link checker setup (base URL or --base flag), or the external URLs are being incorrectly transformed into local file paths before checking.

Suggested fix

  • #1: Fix the image syntax from ![[](/docs/assets/connected_devtools.png)] to ![connected devtools](./assets/connected_devtools.png)
  • #2–#4: Investigate the link checker's base path configuration to determine why external/absolute URLs are being resolved as local files under docs/docs/. If intentional, add these paths to .lycheeignore.

CI output

| Status         | Count |
|----------------|-------|
| 🔍 Total       | 123   |
| ✅ Successful  | 118   |
| ⏳ Timeouts    | 0     |
| 🔀 Redirected  | 0     |
| 👻 Excluded    | 1     |
| ❓ Unknown     | 0     |
| 🚫 Errors      | 4     |
| ⛔ Unsupported | 0     |

Errors:

Error: R] <file:///home/runner/work/gemini-cli/gemini-cli/docs/docs/assets/connected_devtools.png> | Cannot find file
Error: R] <file:///home/runner/work/gemini-cli/gemini-cli/docs/docs/faq.md> | Cannot find file
Error: R] <file:///home/runner/work/gemini-cli/gemini-cli/docs/docs/integration-tests.md> | Cannot find file
Error: R] <file:///home/runner/work/gemini-cli/gemini-cli/docs/docs/sidebar.json> | Cannot find file

extent analysis

TL;DR

Fix the malformed image syntax and investigate the link checker's base path configuration to resolve the incorrect resolution of external URLs as local files.

Guidance

  • Fix the image syntax in docs/CONTRIBUTING.md from ![[](/docs/assets/connected_devtools.png)] to ![connected devtools](./assets/connected_devtools.png) to resolve the first error.
  • Review the lychee link checker setup to determine why external URLs are being resolved as local files under docs/docs/, and adjust the base URL or --base flag accordingly.
  • Consider adding the problematic paths to .lycheeignore if the intention is to exclude them from the link checker.
  • Verify that the link checker is correctly configured to handle external URLs and relative paths.

Example

The corrected image syntax should look like this:

![connected devtools](./assets/connected_devtools.png)

Notes

The issue may be related to the link checker's configuration, and adjusting the base path or ignoring certain paths may resolve the errors. However, without more information about the lychee setup, it's difficult to provide a more specific solution.

Recommendation

Apply the suggested fixes, starting with correcting the image syntax and then investigating the link checker's configuration to resolve the remaining errors. This approach should help resolve the broken links and prevent similar issues in the future.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING